docker-reverse-nginx icon indicating copy to clipboard operation
docker-reverse-nginx copied to clipboard

Enable the reverse to reach the backend on AWS

Open alainperry opened this issue 5 years ago • 0 comments

Before this change, the generated config used the backend container's name as the hostname to forward requests to. On AWS, this didn't work: you need to create a link and since you can't anticipate the name of the running container, the alias of the link is pretty much guaranteed not to be the backend's hostname. This change reads the reverse config to find the alias given by the user to the backend container, which is indeed resolvable and makes it all work. Disclaimer: I didn't get the chance to check if the change breaks things outside of AWS, since I don't have access to an infrastructure that would allow me to do so. My guess is it won't as long as a link is setup from the reverse to the backend.

alainperry avatar Jul 10 '19 08:07 alainperry