2022-08-25 08:27:48 +00:00
|
|
|
upstream gmba_django {
|
2022-09-19 03:57:24 +00:00
|
|
|
server web:8000;
|
2022-08-25 08:27:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
2022-09-19 08:00:56 +00:00
|
|
|
client_max_body_size 256m;
|
|
|
|
|
2022-08-25 08:27:48 +00:00
|
|
|
location / {
|
|
|
|
proxy_pass http://gmba_django;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_redirect off;
|
|
|
|
}
|
|
|
|
|
2022-09-19 04:12:19 +00:00
|
|
|
location /static/ {
|
2022-09-19 04:27:57 +00:00
|
|
|
alias /home/app/app/static/;
|
2022-09-19 08:05:02 +00:00
|
|
|
expires max;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /media/ {
|
|
|
|
alias /home/app/app/media/;
|
|
|
|
expires max;
|
2022-09-19 04:12:19 +00:00
|
|
|
}
|
|
|
|
|
2022-09-22 03:24:21 +00:00
|
|
|
add_header Content-Security-Policy "frame-ancestors https://www.gmba.unibe.ch";
|
2022-08-25 08:27:48 +00:00
|
|
|
}
|