WEBHOOK_URL variable not updating

I have set WEBHOOK_URL in my environment variables. But it never works.

When I create a web hook in a workflow it always uses the n8n.cloud domain, not the domain I specify in WEBHOOK_URL.

I have also tried setting N8N_PROTOCOL and N8N_PORT and N8N_HOST.

Deployed using a Dockerfile on Railway.

Workflow (one node)

{
“nodes”: [
{
“parameters”: {
“path”: “inbound”,
“options”: {}
},
“type”: “n8n-nodes-base.webhook”,
“typeVersion”: 2,
“position”: [
0,
0
],
“id”: “ec2445de-da66-4f90-8870-54ee36347099”,
“name”: “Webhook”,
“webhookId”: “2714aafc-4be7-4b8d-aae8-a790bf143e0f”
}
],
“connections”: {},
“pinData”: {},
“meta”: {
“instanceId”: “5259e37a65e4e6f2b76143fd9d64678ad5777e4a866c4be23811909762f9c165”
}
}

Information on your n8n setup

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

Hi @matmcf,

How do you access your n8n instance?

From the screenshot, the link uses n8n cloud, but you mentioned that you’re self-hosting.

How did you set the WEBHOOK_URL?

What do your environment variables look like?

I access it here: https://n8n-mcp-project-production.up.railway.app

Hmm, did you install n8n using the Docker image or the n8n Railway template?

According to this link, you should also try setting N8N_EDITOR_BASE_URL=${{RAILWAY_PUBLIC_DOMAIN}}

Sorry, I don’t have enough expertise with Railway.

1 Like

Pretty sure it was Docker. I might try one of the other n8n railway templates and start again. Thanks for your help!

1 Like

I setup new guide for fully worked flow. you can go step by step and you can get 8n8 on EC2 within 10 minute

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