help with nginx proxy manager

ali-eljerrari
PRO

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

ali-eljerrari
PRO

2 months ago

N/A


ali-eljerrari
PRO

2 months ago

n8n is using port 5678

1372641592724295700


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.


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


also quick question, why are you using Nginx Proxy Manager?


ali-eljerrari
PRO

2 months ago

if i didnt specify a port it redirects me to nginx proxy manager ui


ali-eljerrari
PRO

2 months ago

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


but still, why are you using Nginx? If you want a n8n instance, Nginx is not necessary


ali-eljerrari
PRO

2 months ago

i need to restrict my ip address


you want to restrict access to your n8n instance only to yourself?


ali-eljerrari
PRO

2 months ago

yes


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


but anyway, if you still want to continue with Nginx Proxy Manager let me know


ali-eljerrari
PRO

2 months ago

is it free?



ali-eljerrari
PRO

2 months ago

i am trying it, i will contact u if anything went wrong


ali-eljerrari
PRO

2 months ago

thanks


no problem, also do a quick read on private networking
https://docs.railway.com/guides/private-networking


Tailscale will basically create a bridge to your project's private networking letting you access it


ali-eljerrari
PRO

2 months ago

tailscale installation curl -fsSL [https://tailscale.com/install.sh](https://tailscale.com/install.sh) | sh should be on my local machine or railway service?


You'll need to install on both Railway and your local machine.


on the docs I mentioned there's the steps for Railway


ali-eljerrari
PRO

2 months ago

i installed it on my machine, but i get this on railway n8n instance

1372647385267835000


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


basically after installing on your local machine, setting up an account and etc, follow the Railway docs mentioned above


ali-eljerrari
PRO

2 months ago

yeah yeah read the docs first, my bad


ali-eljerrari
PRO

2 months ago

i did the steps in the guide, now how to access the n8n dashboard? ping doesnt connect to the service!!

1372652914748817400


try sudo tailscale up


ali-eljerrari
PRO

2 months ago

ping is running, but cant access n8n in browser


try [http://n8n.railway.interval:5678](http://n8n.railway.interval:5678)


ali-eljerrari
PRO

2 months ago

1372655154716737500


ali-eljerrari
PRO

2 months ago

1372655298241757200


ali-eljerrari
PRO

2 months ago

if u need my project id, i will suplly it here


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.


ali-eljerrari
PRO

2 months ago

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


help with nginx proxy manager - Railway Help Station