Created
March 3, 2019 19:50
-
-
Save ozcanyarimdunya/d82ad2dce9ba7cfb57f214b77b02cc9b to your computer and use it in GitHub Desktop.
Docker-django-nginx conf
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
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