nginx-proxy
nginx-proxy copied to clipboard
Client max body size is not cleared up when restarting container
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 any updates on this, dai?
@mesudip has this been solved yet?