Skip to content

Instantly share code, notes, and snippets.

@ozcanyarimdunya
Created March 3, 2019 19:50
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 ozcanyarimdunya/d82ad2dce9ba7cfb57f214b77b02cc9b to your computer and use it in GitHub Desktop.
Save ozcanyarimdunya/d82ad2dce9ba7cfb57f214b77b02cc9b to your computer and use it in GitHub Desktop.
Docker-django-nginx conf
upstream web {
ip_hash;
server web:8000;
}
# portal
server {
listen 8000;
server_name localhost;
location / {
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://web/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment