upstream gunicorn { server web:8000; } server { client_max_body_size 0M; proxy_read_timeout 300; listen 80; location / { proxy_pass http://gunicorn; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_redirect off; } location /static/ { alias /home/static/; } location /media/ { alias /home/media/; } }