fix: update n8n workflow for payment email and improve SMTP configuration details

This commit is contained in:
Lago
2026-05-10 00:23:14 +02:00
parent fae2c0120e
commit 05de6cc9a4
3 changed files with 64 additions and 18 deletions
+8 -3
View File
@@ -16,12 +16,15 @@ Self-hosted Supabase stack + bilingual (DE/EN) public website + lead-management
| `post-init` | `postgres:15-alpine` | Idempotent bootstrap: seed admin + migrations | | `post-init` | `postgres:15-alpine` | Idempotent bootstrap: seed admin + migrations |
| `kong` | `kong:2.8.1` | Single API gateway at `:55521` | | `kong` | `kong:2.8.1` | Single API gateway at `:55521` |
| `studio` | `supabase/studio` | Supabase dashboard (`:55530`) | | `studio` | `supabase/studio` | Supabase dashboard (`:55530`) |
| `web` | `nginx:1.27-alpine` | Public site + admin panel (`:55580`) | | `web` | `nginx:1.27-alpine` | Public website (`:55580`) |
| `web-admin` | `nginx:1.27-alpine` | Admin web entrypoint (`:55581`) |
| `n8n` | `n8nio/n8n:latest` | Automation UI/API (`:55590`) |
| `gotenberg` | `gotenberg/gotenberg:8` | DOCX/PDF conversion (internal only) |
## Requirements ## Requirements
- Docker Engine with Compose v2 (or Portainer with Stacks) - Docker Engine with Compose v2 (or Portainer with Stacks)
- Free ports: `55521`, `55530`, `55532`, `55543`, `55580` - Free ports: `55521`, `55530`, `55532`, `55543`, `55580`, `55581`, `55590`
## Run ## Run
@@ -89,9 +92,11 @@ rm -rf /mnt/user/appdata/mc-cars/data/db # FULL DB wipe (re-runs fir
| Purpose | URL | | Purpose | URL |
| ------------------------------- | --------------------------------- | | ------------------------------- | --------------------------------- |
| Public website | http://\<host\>:55580 | | Public website | http://\<host\>:55580 |
| Admin panel | http://\<host\>:55580/admin.html | | Admin web (dedicated nginx) | http://\<host\>:55581 |
| Admin page | http://\<host\>:55581/admin.html |
| Supabase Studio | http://\<host\>:55530 | | Supabase Studio | http://\<host\>:55530 |
| API gateway (Kong) | http://\<host\>:55521 | | API gateway (Kong) | http://\<host\>:55521 |
| n8n | http://\<host\>:55590 |
| Postgres | `<host>:55532` | | Postgres | `<host>:55532` |
> Admin access is deliberately **not** linked from the public site. Bookmark it. > Admin access is deliberately **not** linked from the public site. Bookmark it.
File diff suppressed because one or more lines are too long
+13 -7
View File
@@ -40,20 +40,26 @@ This folder contains exportable n8n workflow definitions for the MC Cars qualifi
### 2. Create SMTP credential in n8n ### 2. Create SMTP credential in n8n
- **Name:** `MC Cars SMTP` - **Name:** `MC Cars SMTP`
- **Host:** your SMTP server (e.g. `smtp.mailgun.org`, `mail.mc-cars.at`) - **Host:** `heracles.mxrouting.net`
- **Port:** `587` (TLS) or `465` (SSL) - **Port:** `587` (STARTTLS) or `465` (SSL/TLS)
- **User:** your SMTP username - **User:** `office@mc-cars.at`
- **Password:** your SMTP password - **Password:** use the mailbox password provided out-of-band (do not commit secrets to git)
- **From:** `info@mc-cars.at` - **From:** `office@mc-cars.at`
### 3. Import workflows ### 3. Mailbox reference (for future incoming-email workflows)
- **IMAP host:** `heracles.mxrouting.net` (port `993`, SSL/TLS)
- **POP3 host:** `heracles.mxrouting.net` (port `995`, SSL/TLS)
- **Username:** `office@mc-cars.at`
- **Password:** same mailbox password as SMTP
### 4. Import workflows
1. Open n8n at http://localhost:55590 1. Open n8n at http://localhost:55590
2. Go to **Workflows****Import from file** 2. Go to **Workflows****Import from file**
3. Import `01-qualification-payment-email.json` 3. Import `01-qualification-payment-email.json`
4. Import `02-mietvertrag-pdf-email.json` 4. Import `02-mietvertrag-pdf-email.json`
5. Open each workflow → assign the credentials created above → **Activate** 5. Open each workflow → assign the credentials created above → **Activate**
### 4. Upload Mietvertrag template (optional) ### 5. Upload Mietvertrag template (optional)
1. Open Admin panel → **Einstellungen** tab 1. Open Admin panel → **Einstellungen** tab
2. Upload a DOCX file in the "Mietvertrag-Vorlage" section 2. Upload a DOCX file in the "Mietvertrag-Vorlage" section
3. The template should contain these placeholders: 3. The template should contain these placeholders: