Production Webhook URL in n8n still showing as localhost or blank after full environment setup

barinderaus6107-cmd
FREE

a month ago

Issue Description:

I'm deploying n8n on Railway using the latest setup. Despite following all setup steps and adding the required environment variables, my n8n Webhook node still shows:

CopyEdit

Production URL: https:///webhook/generate-script

—or sometimes—

CopyEdit

Production URL: http://localhost:5678/webhook/generate-script

I'm expecting it to show my public Railway domain like:

CopyEdit

https://n8n-automation-production-xxxxx.up.railway.app/webhook/generate-script

Environment Setup:

I’ve added these environment variables under both Shared Variables and directly in the n8n service:

VariableValueWEBHOOK_URLhttps://${{RAILWAY_PUBLIC_DOMAIN}}/N8N_EDITOR_BASE_URLhttps://${{RAILWAY_PUBLIC_DOMAIN}}/N8N_LISTEN_ADDRESS::PORT5678

I’ve saved and redeployed multiple times, and I’m still not seeing the proper Production URL inside n8n.

What I Need Help With:

  • Ensuring the RAILWAY_PUBLIC_DOMAIN resolves correctly in n8n

  • Making sure n8n recognizes the environment config and outputs the correct webhook URL

What I’ve Tried:

  • Switching webhook node to Production mode

  • Activating and saving the workflow

  • Redeploying after variable changes

  • Logging out/logging in again to n8n

  • Creating a new workflow and webhook node

Solved$10 Bounty

1 Replies

Railway
BOT

a month ago


a month ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody about 1 month ago


Status changed to Solved barinderaus6107-cmd about 1 month ago