Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client max body size is not cleared up when restarting container #27

Open
mesudip opened this issue Jun 18, 2024 · 2 comments
Open

Client max body size is not cleared up when restarting container #27

mesudip opened this issue Jun 18, 2024 · 2 comments

Comments

@mesudip
Copy link
Owner

mesudip commented Jun 18, 2024

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
@ruppo-912116
Copy link

@mesudip any updates on this, dai?

@ruppo-912116
Copy link

ruppo-912116 commented Jan 17, 2025

@mesudip has this been solved yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants