WEBHOOK on Mac Docker - Fix localhost with Cloudflare Tunnel & n8n

Опубликовано: 17 Июль 2026
на канале: Twinkle PPC
593
12

Container values and Environment Variables:
https://bit.ly/48onrwf

Are you running n8n or another service in Docker on a Mac and struggling with webhooks that always show http://localhost:5678? This is the ultimate guide to fixing the notorious localhost issue when tunneling traffic through Cloudflare Tunnel (cloudflared).

You'll learn how to properly configure Docker Environment Variables to force your container to use your LIVE, public, HTTPS webhook URL (e.g., https://tunnel.yourdomain.com). This is essential for receiving real-time webhooks from external services like Odoo, GitHub, Stripe, and more!

GENERIC_TIMEZONE=Canada/Eastern
TZ=Canada/Eastern
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
N8N_RUNNERS_ENABLED=true
N8N_HOST=[YOUR-TUNNEL-URL-FROM-CLOUDFLARE]
WEBHOOK_URL: https://[YOUR-TUNNEL-URL-FROM-CLOUDFLARE]/
N8N_PROTOCOL=https
n8n_youtube_test2=/home/node/.n8n

N8N_HOST: This tells n8n its public domain (tunnel.drinkdashdialabottle.ca).
N8N_PROTOCOL=https: This forces n8n to generate secure HTTPS URLs (Cloudflare handles the SSL).

Our website: http://twinkleppc.co/