Change webhook url doesn't work

Hey,

I need to change the webhook-adress which is used by default.
n8n version: 1.70.3
nginx
OS: Ubuntu 24.04.1 Server
n8n running via npm

I changed the environment variable WEBHOOK_URL to http://myownadress.com in the .bashrc via export WEBHOOK_URL=http://abc.de

After that I stopped the services for nginx and n8n, sourced the .bashrc manually and started the services again.

Created a new workflow with webhook, but the URL is still the localhost.

I also tried the other N8N environment variables.

Really hope some of you can help me.

Thanks.

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:
1 Like

Nevermind, I got it.

I started n8n via systemd and forgot to set the EnvironmentFile, now it works fine.

I started n8n on the regular way, opened a second ssh connection, read the environment varbiables of the process and created a n8n.conf file which I use for n8n.service.

I hope that’s helpful for someone in the future

1 Like

Thanks for sharing.

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