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
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
Project ID:
c145ee5f-1328-4800-a921-dc30a9fd66c8
c145ee5f-1328-4800-a921-dc30a9fd66c8
You won’t need to setup a reverse proxy if you use the template. It is already configured to use railway
but i am getting a CORS error when i try to hit a webhook from a differente domain
When you deploy the template, just make sure you expand all the options for the configuration
if you try to hit the webhook from a differente domain you will get CORS error :/
Have you configured the domain to point to the railway service?
yes, sir
Hmmmm
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/...
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.
Whenever you can it would be much appreciated 🙂
Maybe someone else with some n8n experience can troubleshoot before then
If not, I will test and report back
hi @Vin - Sarcasm Specialist , where you able to test?
I was not, I do apologize, I had some other things come up. I’ll try and get to it today