gmba_django/nginx/nginx.conf

29 lines
563 B
Nginx Configuration File
Raw Normal View History

upstream gmba_django {
2022-09-19 03:57:24 +00:00
server web:8000;
}
server {
listen 80;
2022-09-19 08:00:56 +00:00
client_max_body_size 256m;
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;
}
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;
}
add_header Content-Security-Policy "frame-ancestors https://www.gmba.unibe.ch";
}