From 1b010cc3900051dfd204285b81961f9cf089226b Mon Sep 17 00:00:00 2001 From: MaximUltimatum Date: Sun, 1 Dec 2024 13:37:16 -0600 Subject: [PATCH] Max size increase needs to go inside server block --- backend/nginx.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/nginx.conf b/backend/nginx.conf index a58fce5..b0edbe0 100644 --- a/backend/nginx.conf +++ b/backend/nginx.conf @@ -10,8 +10,6 @@ http { sendfile on; keepalive_timeout 65; - client_max_body_size 100M; - upstream django { server server:8000; # Use the internal Docker networking } @@ -19,6 +17,7 @@ http { server { listen 80; # NGINX always listens on port 80 inside the container server_name localhost; + client_max_body_size 100M; location / { proxy_pass http://server:8000; # Explicitly forward to Django service