Troubles with Custom Domain for Webhooks

Im running n8n off a docker container on an ubuntu server.

When I create a webhook it displays “https://n8n./webhook-test/6…”

I have SSH’d into the server and added the following lines to my .env folder WEBHOOK_URL=https://n8n.mydomain.com

and then rebooted the machine and no luck.

Where am i supposed to be putting this line?

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hi @Gavien

Thanks for posting here and welcome to the community! :cake:

Since you’re using docker, the WEBHOOK_URL needs to be loaded from the container when launching. The .env file is supposed to only hold the values that you want your docker environment to be booted with.

So either put it in your docker compose file (recommendation) or you can run the flag when launching the container -e WEBHOOK_URL=https://n8n.mydomain.com

Have a look in our docs:

1 Like

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