Skip to content

Instantly share code, notes, and snippets.

@DarkSuniuM
Forked from ubermuda/nginx.conf
Created March 12, 2020 21:57
Show Gist options
  • Save DarkSuniuM/3d18a8e8c309e7b4e2ebed4cd1d82b53 to your computer and use it in GitHub Desktop.
Save DarkSuniuM/3d18a8e8c309e7b4e2ebed4cd1d82b53 to your computer and use it in GitHub Desktop.
Proxy a unix socket HTTP server to a tcp port using nginx.
server {
listen 127.0.0.1:9000;
location / {
proxy_pass http://unix:/var/run/docker.sock:/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment