Skip to content

Instantly share code, notes, and snippets.

@l1th1um
Created April 9, 2022 16:11
Show Gist options
  • Select an option

  • Save l1th1um/0ba3918c26ab0f480631bb7b4edbcee5 to your computer and use it in GitHub Desktop.

Select an option

Save l1th1um/0ba3918c26ab0f480631bb7b4edbcee5 to your computer and use it in GitHub Desktop.
Reverse Proxy Nginx for Docker Container
server {
listen 80;
listen [::]:80;
server_name __;
location / {
proxy_pass http://127.0.0.1:8000/;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection "";
proxy_set_header Host $http_host;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment