I want to config dynamically client_max_body_size using a variable in nginx config.
set $max_body 100M;
client_max_body_size $max_body;
How to patch nginx for this?
Thanks,
You can't.
Directive client_max_body_size
doesn't accept variables and is not usable in a if
block.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With