
To use n8n properly you need an address such as n8n.asuaempresa.ao, with a padlock. There are four pieces: a DNS record pointing at the VPS, a proxy that speaks HTTPS, a certificate, and the WEBHOOK_URL variable telling n8n its public address. Without the last one, n8n shows webhook addresses with localhost in them, and no outside service can reach them.
Step by step
|
|
|
|
|
|
What goes wrong
| Symptom | Likely cause | What to do |
Webhook addresses show localhost:5678 |
WEBHOOK_URL missing, or the container was not recreated. |
Fix the variable and run docker compose up -d again. |
| The editor opens but says the connection was lost | The proxy does not pass real-time connections. | Add proxy_http_version 1.1 and the Upgrade and Connection headers. |
| 502 Bad Gateway | The proxy cannot reach n8n: container stopped, wrong port. | Check docker compose ps and confirm 127.0.0.1:5678 in the proxy. |
| The certificate is not issued | The DNS record does not point at the VPS yet, or port 80 is closed. | Check DNS and the firewall: ports and firewall. |
| “Too many redirects” | Cloudflare in the wrong mode in front of the proxy. | See switching on SSL at Cloudflare without breaking the site. |
A typo in WEBHOOK_URL breaks every webhook. If you change domain, the addresses you already gave to outside services stop working. After any change, copy the address from the Webhook node again, wherever you use it.
|
| Use a subdomain just for n8n. It is easy to move to another server (change one A record) and it does not get mixed up with the company website. |
|
The domain does not point at the VPS yet? We will show you what has to be in the DNS. Open a support ticket |
|
SEE ALSO Installing n8n with Docker Compose on a VPS HTTPS for a container: a certificate and a domain |
RECOMMENDED PRODUCT Register your .ao domain Secure your company name before someone else registers it. from 30.000,00 Kz/yr Search a domain |
- 0 Users Found This Useful











