discocheetah
NGINX proxy to private service
I'll look. This may be more trouble than it's worth. This is not the app I'm working on, just something I thought would be a quick and easy test of how to set something up on Railway. Might make more sense to just wait until I'm further along on my own project, keeping in mind this little gotcha.
26 replies
NGINX proxy to private service
If I was doing this locally in docker compose, I'd have the proxy server spun up in one container and the app in another. The compose file would not expose any ports for the app container, while the proxy container would expose 80 and 443. Both containers would be on the same docker network and the proxy config would route app.mydomain.com to the app container name with its internal port. That's the mental image of what I'm trying to replicate, but maybe it's not quite the same.
26 replies