# configuration upstream djangomad { server web:8000; } server { listen 8080; client_max_body_size 50M; location /madrigal { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_redirect off; proxy_set_header X-Script-Name /madrigal; proxy_pass http://djangomad; } location /madrigal/static/ { alias /static/; } }