PluralitySpace-django/.deployment/nginx/nginx.conf

23 lines
413 B
Nginx Configuration File

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;
}
location /staticfiles {
alias /srv/http/staticfiles;
}
location /mediafiles {
alias /srv/http/mediafiles;
}
}