🔧 Struggling to Test Telegram/WhatsApp/Discord on Local n8n via Docker – Webhook URLs Driving Me Crazy!

Hey folks :wave:

I’ve been trying to test Telegram, WhatsApp, and Discord integrations on an n8n workflow hosted locally on my Mac (via Docker), and I keep running into a wall with the webhook URLs.

I know I’m supposed to use something like ngrok to expose my local server. I did that, and I can get a public URL just fine. But here’s the problem: I can’t figure out how to edit the webhook URLs in the various triggers inside n8n. They still point to localhost, and the external services obviously can’t reach that.

Is there a proper way to configure n8n so that it uses my ngrok URL instead of localhost when setting up the webhook triggers? Or is there a workaround I’m missing?

Would love to hear how others have tackled this! :pray:

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hi,

Did you see there is a WEBHOOK_URL env variable?

reg,
J.

1 Like

Hey, thanks a lot!
I totally missed the WEBHOOK_URL env variable — setting it fixed my issue instantly.
Appreciate the help :pray:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.