Sergey A. Osokin
June 24, 2019 07:44PM
On Mon, Jun 24, 2019 at 09:48:46AM -0400, Bartek wrote:
> 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"...

In case you want to think in megabytes it's a bit tricky, but also works:

% echo "20*1024*1024" | bc | xargs -J % sudo curl -X PUT -d % \
--unix-socket /var/run/unit/control.unit.sock http://localhost/config/settings/http/max_body_size
{
"success": "Reconfiguration done."
}

> Thanks a bunch Sergey and have a nice day.

Enjoy!

--
Sergey Osokin
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx/Unit sendfile failed for upstream

Bartek June 23, 2019 03:09AM

Re: Nginx/Unit sendfile failed for upstream

Sergey A. Osokin June 23, 2019 09:14AM

Re: Nginx/Unit sendfile failed for upstream

Bartek June 24, 2019 09:48AM

Re: Nginx/Unit sendfile failed for upstream

Sergey A. Osokin June 24, 2019 07:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready