The comment above is accurate how domain names can be passed to Nginx that would resolve to private IP addresses. But that doesn’t mean they need to exposed. Nginx has a listen
directive that specifies what IPs are listened on. So If your Reserve Proxy has both a public IP and private IP. then the private services can have a a listen directive like this:
server { # Whatever your proxy's private IP is listen 10.0.0.1; server_name my-private-service; }
No matter what hostname is passed in, Nginx would only reply to requests that can reach the Nginx host at it’s private IP address.
lemmyvore@feddit.nl 9 months ago
Oh yes, if they’re completely separate and the internal proxy can’t be reached from port forward that’s fine.
I was stuck thinking about two chained proxies for some reason.
tofubl@discuss.tchncs.de 9 months ago
I never specified, I think, and probably wasn’t too clear on it myself. Thanks for your insights, I’ll try to take them to my configuration now.