set /configuration client body size dynamically

This commit is contained in:
Elvin Efendi 2019-08-14 22:03:17 -04:00
parent b21c721196
commit 6a293c7e11
3 changed files with 62 additions and 33 deletions

View file

@ -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 {