Hello! I want to use 2 domains for n8n.
1 - to access the web panel: n8n.exaple.com on port 443
2 - for webhooks wh.exaple.com on port 443
n8n works in the Docker. All requests are proxied by Nginx Proxy Manager and ACL is configured on n8n.exaple.com, when I try to go to this address, asked for a password. That’s why I can’t use webhook on this domain name.
Problem: I can’t set up 2 domains on port 443.
The problem starts when I try to set up n8n for different domain names. If I use n8n.exaple.com to port 443, then it will already be taken, and I cannot use another wh.exaple.com domain on port 443. If I set it to a different address, for example wh.exaple.com:4443 and set up a reverse proxy, then everything works fine, but in the n8n web interface, access to the webhook is displayed as wh.exaple.com:4443, although in fact it is wh.exaple.com:443(https://wh.exaple.com) because of the reverse proxy and I have to change the address myself every time I type it into the browser.
NOW:
NEED:
Port settings and everoment:
environment:
- GENERIC_TIMEZONE=Europe/Berlin
- TZ=Europe/Berlin
- N8N_HOST=n8n.exaple.com
- N8N_PROTOCOL=https
- N8N_PORT=443
- WEBHOOK_URL=https://wh.exaple.com:4443/
- WEBHOOK_TUNNEL_URL=https://wh.exaple.com:4443/
- VUE_APP_URL_BASE_API=https://wh.exaple.com:4443/
- N8N_EDITOR_BASE_URL=http://n8n.exaple.com/
- DB_TYPE=mariadb
- DB_MYSQLDB_HOST=mariadb
- DB_MYSQLDB_PORT=3306
- DB_MYSQLDB_DATABASE=n8n
- DB_MYSQLDB_USER=n8n
- DB_MYSQLDB_PASSWORD=[HIDE PASSWORD]
- NODE_ENV=production
ports:
- "127.0.0.1:5678:443"
- "127.0.0.1:4443:4443"

