Created
October 17, 2016 14:15
-
-
Save eresende/b9f1cd706cc2dde1640c2ccabc0b86fa to your computer and use it in GitHub Desktop.
Nginx reverse proxy for docker containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream demo1.localhost { | |
server 172.17.0.4:5000; | |
server 172.17.0.3:5000; | |
} | |
server { | |
#ssl_certificate /etc/nginx/certs/demo.pem; | |
#ssl_certificate_key /etc/nginx/certs/demo.key; | |
gzip_types text/plain text/css application/json application/x-javascript | |
text/xml application/xml application/xml+rss text/javascript; | |
server_name demo1.localhost; | |
location / { | |
proxy_pass http://demo.localhost; | |
include /etc/nginx/proxy_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment