2 months ago
please, can anyone give me a hand with this, i trying to proxy n8n through nginx proxy manager in railway, what am i doing wrong, i can proxy n8n through nginx perfectly, but am i missing something with nginx proxy manager!!!!
0 Replies
2 months ago
Hey, you're understanding a few things wrong about Nginx. Nginx Proxy Manager will route your traffic based on the domain you selected, so if you chose that Railway domain, you'll need to acess it without the port.
2 months ago
In your setup, Nginx will route all traffic coming to your 80/443 port (http or https) and then decides on how to route it to your n8n instance
2 months ago
also quick question, why are you using Nginx Proxy Manager?
i used nginx, it works fine, but i dont want to miss with conf files, so i decided to give nginx proxy manager a shot
2 months ago
but still, why are you using Nginx? If you want a n8n instance, Nginx is not necessary
2 months ago
you want to restrict access to your n8n instance only to yourself?
2 months ago
if yes, then I would recommend setting up Tailscale instead
https://docs.railway.com/tutorials/set-up-a-tailscale-subnet-router
it's basically a VPN to your project
2 months ago
but anyway, if you still want to continue with Nginx Proxy Manager let me know
2 months ago
yep
2 months ago
no problem, also do a quick read on private networking
https://docs.railway.com/guides/private-networking
2 months ago
Tailscale will basically create a bridge to your project's private networking letting you access it
tailscale installation curl -fsSL [https://tailscale.com/install.sh](https://tailscale.com/install.sh) | sh
should be on my local machine or railway service?
2 months ago
You'll need to install on both Railway and your local machine.
2 months ago
on the docs I mentioned there's the steps for Railway
2 months ago
that's the wrong steps of doing it, on your Railway project (a project is the group of services) you'll need to follow these steps
https://docs.railway.com/tutorials/set-up-a-tailscale-subnet-router#1-getting-an-auth-key
2 months ago
basically after installing on your local machine, setting up an account and etc, follow the Railway docs mentioned above
i did the steps in the guide, now how to access the n8n dashboard? ping doesnt connect to the service!!
2 months ago
try sudo tailscale up
2 months ago
try [http://n8n.railway.interval:5678](http://n8n.railway.interval:5678)
2 months ago
It seems like your PC/browser (likely a Linux issue) is unable to detect the Tailscale DNS. I'm not very experienced with this error, and the most I can do is share this tutorial: https://medium.com/@gladevise/dns-resolution-issue-on-ubuntu-20-04-with-tailscale-53c4e6ddeccb If you want to go back to using Nginx Proxy Manager instead, I would be able to help with that. Sorry about this issue - I've never encountered problems with Tailscale before.
well, i dont want to miss with my network settings. i will try to figure out how to configure nginx proxy manager. i will reach to u if i am stuck at some point