From 3eb5ba12d9423977a7193279ee5f269c802f3c44 Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 19 Sep 2022 13:30:56 +0530 Subject: [PATCH] Add missing configs for nginx --- nginx/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 3a25edf..75f3c54 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -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" }