n8n · infra · fg-0351
n8n shows webhook URLs as http://localhost:5678 when running behind a reverse proxy
Webhook node displays http://localhost:5678/webhook/...
Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100
Cause
n8n builds public URLs from its protocol, host and port settings, which describe the internal listener, not the proxy. From 2.35.0 the override is N8N_WEBHOOK_URL and the old WEBHOOK_URL logs a deprecation warning.
Fix
Set the public base URL explicitly, set proxy hops to 1, and forward X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Proto from the proxy.
Apply
# n8n before 2.35.0 reads WEBHOOK_URL; 2.35.0 and later read N8N_WEBHOOK_URL WEBHOOK_URL=https://n8n.example.com/ N8N_WEBHOOK_URL=https://n8n.example.com/ N8N_PROXY_HOPS=1
Affects: Self-hosted n8n behind nginx, Traefik, Caddy or a load balancer; N8N_WEBHOOK_URL naming from 2.35.0
Sources
Have your agent know this before it fails
claude mcp add --transport http footgun https://getfootgun.com/api/mcp