set /configuration client body size dynamically
This commit is contained in:
parent
b21c721196
commit
6a293c7e11
3 changed files with 62 additions and 33 deletions
|
|
@ -580,9 +580,8 @@ http {
|
|||
}
|
||||
|
||||
location /configuration {
|
||||
# this should be equals to configuration_data dict
|
||||
client_max_body_size 10m;
|
||||
client_body_buffer_size 10m;
|
||||
client_max_body_size {{ luaConfigurationRequestBodySize $cfg }}m;
|
||||
client_body_buffer_size {{ luaConfigurationRequestBodySize $cfg }}m;
|
||||
proxy_buffering off;
|
||||
|
||||
content_by_lua_block {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue