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