<div dir="ltr">Hi,<div>have there been plans on adding support for dynamic <span style="color:rgb(0,0,0);white-space:pre-wrap">client_max_body_size, based on nginx-variable so it could be set for example in Lua-code per request?</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Also another nice feature to support dynamic size limitations would be a response size body limit like response_max_body_size with support for dynamic limits using a variable?</span></div><div><br></div><div>If this is not planned for any near future I could try to see how challenging this kind of support would be to add. I guess for the client_max_body_size variable resolution would be reasonably simple following example from some other existing dynamic variables.</div><div><br></div><div>However, adding support for response_max_body_size would require a bit more changes and also in the case of chunked-encoding a good question would be what should be done if the content-size limit exceeds during the response, should the connection be closed or what. Or perhaps this kind of feature would only be supported for responses with Content-Length header?</div><div><br></div><div>Alternatively these limitations could be done by perhaps using some Lua code and ngx.location.capture but I think it would be cleaner to have a dynamic control variable for the limits.</div><div><br></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">br,</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Jussi</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div></div>