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