When configuring nginx, what considerations affect client_body_buffer_size?
I've set it to 10m for a website where users upload photos and image-memes (kind of like 9gag). Note that client_max_body_size is set to 10m as well. Overall, my reasoning is that the webserver should accept POST requests with images as big as 10MB (website policy) - and thus both these directives ought to be 10m.
Is this reasoning correct?
Can someone shed light on the factors affecting what values to set for client_body_buffer_size, and typical values of client_body_buffer_size (for the sort of web application I described)?
In case it matters, I utilize nginx as a reverse proxy.
client_body_buffer_sizeis dictated by the upper limit of the upload file sizes my application would accept? – Hassan Baig Feb 04 '19 at 16:45client_body_buffer_sizesize at10k, whereasclient_max_body_sizeis set to8m. What kind of scenarios are those? Shouldn't buffer size always be as big as body size? – Hassan Baig Feb 04 '19 at 18:04