nginx-proxy icon indicating copy to clipboard operation
nginx-proxy copied to clipboard

Client max body size is not cleared up when restarting container

Open mesudip opened this issue 1 year ago • 2 comments

Relevant log

         location /api/ { 
-            client_max_body_size 200M;  
-            proxy_pass http://10.0.2.158:8080/api/;
+            client_max_body_size 200M;
+            client_max_body_size 400M;
+            client_max_body_size 0;  
+            proxy_pass http://10.0.2.167:8080/api/;
             proxy_redirect $scheme://$http_host/api/ $scheme://$http_host/api/; 
         }
         location /api/events {   
-            proxy_pass http://10.0.2.158:8080/api/events;
+            proxy_pass http://10.0.2.167:8080/api/events;
             proxy_redirect $scheme://$http_host/api/events $scheme://$http_host/api/events; 
             proxy_http_version 1.1;
             proxy_set_header Upgrade $http_upgrade;
@@ -145,12 +147,12 @@

             proxy_read_timeout  1h;
             proxy_send_timeout 1h;
         }
+        location / {   
+            proxy_pass http://10.0.2.162:3000/; 
+        }
         location /editor/ {   
-            proxy_pass http://10.0.2.159:80/;
+            proxy_pass http://10.0.2.163:80/;
             proxy_redirect $scheme://$http_host/ $scheme://$http_host/editor/; 
-        }
-        location / {   
-            proxy_pass http://10.0.2.162:3000/; 
         } 
 
 }
nginx: [emerg] "client_max_body_size" directive is duplicate in /etc/nginx/conf.d/default.conf:136

mesudip avatar Jun 18 '24 09:06 mesudip

@mesudip any updates on this, dai?

ruppo-912116 avatar Jun 25 '24 07:06 ruppo-912116

@mesudip has this been solved yet?

ruppo-912116 avatar Jan 17 '25 08:01 ruppo-912116