Last active
November 9, 2017 20:35
-
-
Save nealey/107667dc48568da49c7dc85f1ab8cae7 to your computer and use it in GitHub Desktop.
nginx configuration to reverse proxy to any docker image it can resolve
This file contains 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
server { | |
listen 443 default_server ssl http2; | |
// server_name if you need it | |
// don't forget your SSL configuration | |
location ~ ^/([^/]+)/ { | |
resolver 127.0.0.11; | |
proxy_pass http://$1/; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment