Trying to confirm syntax of CLIENT_MAX_BODY_SIZE environment variable

Sergey A. Osokin osa at freebsd.org.ru
Sun Dec 4 16:33:04 UTC 2022


Hi David,

On Sat, Dec 03, 2022 at 10:07:51AM -0800, David Karr wrote:
> 
> I was told that v1.22 of nginx will look for a CLIENT_MAX_BODY_SIZE
> environment variable to configure the "client_max_body_size" configuration
> property.  I'm having trouble finding a clear statement of what the
> required syntax is for that.

That's not correct, to make sure how it works please go ahead and take a
look on the env directive [1].

> The documentation for the configuration property, at
> http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
> , simply uses "m" as an example, but it doesn't actually say anything about
> what the required syntax is.  Does it only allow "m", or does it check for
> "M" or other variations?

Please take a look on the following document [2].

References
1. https://nginx.org/en/docs/ngx_core_module.html#env
2. https://nginx.org/en/docs/syntax.html

Hope that helps.

-- 
Sergey A. Osokin



More information about the nginx mailing list