Skip to content

Instantly share code, notes, and snippets.

@nealey
Last active November 9, 2017 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nealey/107667dc48568da49c7dc85f1ab8cae7 to your computer and use it in GitHub Desktop.
Save nealey/107667dc48568da49c7dc85f1ab8cae7 to your computer and use it in GitHub Desktop.
nginx configuration to reverse proxy to any docker image it can resolve
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