R
Railway3mo ago
forza

n8n webhook is directing to localhost

I included these variables in the screenshot below using chatgpt to guide me because I couldn't find any documentation to help me set this up. But whenever I go to my instance of n8n, the webhook base URL is: http://localhost:5678/ which from what I understand wont allow me to connect with other api's online. Can anyone offer any insight on this?
No description
12 Replies
Percy
Percy3mo ago
Project ID: N/A
ThallesComH
ThallesComH3mo ago
you need to set the following variable: WEBHOOK_URL="https://${{RAILWAY_PUBLIC_DOMAIN}}" and also, any reason to not use the available templates?
forza
forzaOP3mo ago
I had the webhook_url variable set as that, and Im not sure what you mean by available templates. Im very new to web dev and was following a youtube guide. Which templates do you mean?
ThallesComH
ThallesComH3mo ago
and just to be sure, did you click the apply changes? if you just want a simple n8n instance, use my template https://railway.app/template/MRazvG
forza
forzaOP3mo ago
actually didnt have it set as that, i had it as WEBHOOK_URL="https:mydomain.com". Regardless I changed it to the variable version and still didnt work so I must've messed something up elsewhere. Ima give your template a try, thanks
ThallesComH
ThallesComH3mo ago
did you click the deploy changes button?
ThallesComH
ThallesComH3mo ago
every variable change in Railway you'll need to click on this button
No description
forza
forzaOP3mo ago
not sure if it said deploy changes specifically but I did restart it and redeploy it like 4 times
ThallesComH
ThallesComH3mo ago
thats probably the problem then, try to find that button on your UI, its on center top
forza
forzaOP3mo ago
I rather use yours, mines felt very jerry rigged and it works fine now with the template. Plus this postgres data storage feature is cool. How does this template handle n8n updates? The one I had made was connected to a github repo on my acc and I could supposedly update it from within github by syncing it up. Does the template update automatically or are you in control of it?
ThallesComH
ThallesComH3mo ago
my template uses the n8n latest docker image so it'll update if you redeploy it
forza
forzaOP3mo ago
Alright cool, I appreciate the help
Want results from more Discord servers?
Add your server