discocheetah
discocheetah
RRailway
Created by discocheetah on 1/17/2024 in #✋|help
NGINX proxy to private service
Hi folks. 👋 New to Railway and struggling to understand the networking aspect. I have deployed NGINX proxy manager and a nodejs service. I want the nodejs service private, only accessible through NGINX so I can use basic auth. Here are the steps I have taken after combing through the docs and web search results. - Added a custom domain (e.g. app.mydomain.com) to NGINX. - Configured DNS to point this domain to the URL Railway provides for the NGINX service. - That domain now takes me to the NGINX admin UI. So far so good. - Add a variable to the nodejs service. PORT: 3000 - In NGINX configure a proxy host pointing to the internal URL of the nodejs service on port 3000. - Now I expected that app.mydomain.com would take me to the nodejs app and the NGINX admin UI would only be available on the Railway URL, but it's still just going to the NGINX admin UI. There's clearly something else I'm not understanding. Thanks!
26 replies