Subject: Help: Webhook URL includes port 5678 — how to remove it?
Hi everyone,
I’m trying to understand how the webhook URL is generated in n8n. I’m running n8n using the following command:
docker run -d \
--name n8n \
--restart unless-stopped \
-p 5678:5678 \
-v n8n_data:/home/node/.n8n \
-e N8N_BASIC_AUTH_ACTIVE=false \
-e N8N_AUTH_EXCLUDE_ENDPOINTS="*" \
-e N8N_HOST=$HOST \
-e N8N_PORT=5678 \
-e N8N_PROTOCOL=https \
-e N8N_DIAGNOSTIC_DATA_SAVE_MANUAL_EXECUTIONS=true \
-e N8N_WEBHOOK_URL=$URL \
docker.n8n.io/n8nio/n8n > /var/log/n8n-lab/n8n.log 2>&1
However, the webhook URL that n8n generates includes the port like this:
https://xyz.com:5678/rest/oauth2-credential/callback
But I don’t want the port :5678
to appear in the URL.
How does n8n determine this, and how can I configure it to exclude the port in the generated webhook URL?
Thanks in advance!