app.conf
22 lines
| 437 B
| text/plain
|
TextLexer
/ nginx / app.conf
r1 | # configuration | |||
upstream djangomad { | ||||
server web:8000; | ||||
} | ||||
server { | ||||
r6 | listen 8080; | |||
r8 | client_max_body_size 50M; | |||
r1 | ||||
r6 | location /madrigal { | |||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||||
proxy_set_header Host $host; | ||||
r1 | proxy_redirect off; | |||
r6 | proxy_set_header X-Script-Name /madrigal; | |||
r1 | proxy_pass http://djangomad; | |||
} | ||||
r6 | location /madrigal/static/ { | |||
r1 | alias /static/; | |||
} | ||||
r6 | } | |||