Add missing configs for nginx
This commit is contained in:
parent
bc4061f12a
commit
3eb5ba12d9
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ upstream gmba_django {
|
|||
server {
|
||||
listen 80;
|
||||
|
||||
client_max_body_size 256m;
|
||||
|
||||
location / {
|
||||
proxy_pass http://gmba_django;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
@ -12,9 +14,9 @@ server {
|
|||
proxy_redirect off;
|
||||
}
|
||||
|
||||
|
||||
location /static/ {
|
||||
alias /home/app/app/static/;
|
||||
}
|
||||
|
||||
add_header Content-Security-Policy "frame-ancestors https://www.gmba.unibe.ch"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue