#2: use gunicorn with nginx as reverse proxy

This commit is contained in:
Lexi / Zoe 2019-10-21 01:19:02 +02:00
parent 754363a92e
commit 3c1fec3f63
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
5 changed files with 32 additions and 10 deletions

View file

@ -0,0 +1,14 @@
upstream app_django {
server django:8000;
}
server {
listen 80;
location / {
proxy_pass http://app_django;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
}