Reverse proxy in Railway

hi folks, i was wondering how can I apply a reverse proxy to this template: https://github.com/railwayapp-templates/n8n I have been reading all over the place in both discords and documentation and it is always mentioned that railway has its own reverse proxy but I can not find the way to edit or manipulate. I have seen recommendations to use caddy or traefik but i am a bit lost. I read nixpacks documentation as well to see if I can built a package that uses n8n, postgresql db and a proxy but I am not there yet oops any guidance is much appreciated.
GitHub
GitHub - railwayapp-templates/n8n: Self-hosted Workflow Automation ...
Self-hosted Workflow Automation Tool. Contribute to railwayapp-templates/n8n development by creating an account on GitHub.
15 Replies
Percy
Percy13mo ago
Project ID: c145ee5f-1328-4800-a921-dc30a9fd66c8
Antonio_cl
Antonio_cl13mo ago
c145ee5f-1328-4800-a921-dc30a9fd66c8
MantisInABox
MantisInABox13mo ago
You won’t need to setup a reverse proxy if you use the template. It is already configured to use railway
Antonio_cl
Antonio_cl13mo ago
but i am getting a CORS error when i try to hit a webhook from a differente domain
MantisInABox
MantisInABox13mo ago
When you deploy the template, just make sure you expand all the options for the configuration
Antonio_cl
Antonio_cl13mo ago
if you try to hit the webhook from a differente domain you will get CORS error :/
MantisInABox
MantisInABox13mo ago
Have you configured the domain to point to the railway service?
Antonio_cl
Antonio_cl13mo ago
yes, sir
MantisInABox
MantisInABox13mo ago
Hmmmm
Antonio_cl
Antonio_cl13mo ago
you can find more info in this post on n8n forum: https://community.n8n.io/t/cors-issue-in-railway-deployment/27728
n8n
CORS issue in Railway Deployment
Describe the problem/error/question I have configured a webhook to be triggered when a POST request is made to the endpoint. The request is made from a different domain. Lets say I have n8n in auto.n8n.com and the domain making the request is store.com What is the error message (if any)? Access to fetch at ‘https://auto.n8n.com/webhook/number/...
MantisInABox
MantisInABox13mo ago
I would need to be able to deploy the template and see what’s going on. I’m not currently able to access my computer at this time, I will be able to test this in about 5 hours.
Antonio_cl
Antonio_cl13mo ago
Whenever you can it would be much appreciated 🙂
MantisInABox
MantisInABox13mo ago
Maybe someone else with some n8n experience can troubleshoot before then If not, I will test and report back
Antonio_cl
Antonio_cl13mo ago
hi @Vin - Sarcasm Specialist , where you able to test?
MantisInABox
MantisInABox13mo ago
I was not, I do apologize, I had some other things come up. I’ll try and get to it today