- Symptom
- Webhook node displays http://localhost:5678/webhook/...OAuth callback or app webhook registration points to localhostStartup warning that WEBHOOK_URL is deprecated
- 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- Affected
- Self-hosted n8n behind nginx, Traefik, Caddy or a load balancer; N8N_WEBHOOK_URL naming from 2.35.0
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders