Sergey A. Osokin Wrote: ------------------------------------------------------- > % sudo curl -X PUT -d '{"http": { "max_body_size": 8388608} }' > --unix-socket \ > /path/to/control.unit.sock http://localhost/config/settings > OMG, it can't be that simple. So my doom was caused by "20M" instead of "20000000"... Thanks a bunch Sergeyby Bartek - Nginx Mailing List - English
Hello I have nginx (1.15.9) + unit(1.9) + php(7.2.15). When uploading files larger then 8Mb Nginx was failing with 413 Payload too large, so in nginx.conf, http {} section I added "client_max_body_size=0" - it worked for nginx, but now Unit is rejecting uploads. Everything works fine for uploads smaller then ~8MB. When I go above that value, browser will fail with 502 Bad Gatewaby Bartek - Nginx Mailing List - English