From e8e83fc5d46a6f1cf6ef7ec6e84d6eae8e41fb92 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Sat, 29 Jun 2024 18:33:30 -0500 Subject: [PATCH] add a specific exemption for the admin panel --- nginx/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index a68441f..d8b819b 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -17,6 +17,14 @@ server { client_max_body_size 100M; } + location /admin/ { + proxy_pass http://franklincce; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + proxy_redirect off; + client_max_body_size 100M; + } + location /static/ { alias /home/app/web/staticfiles/; }