commit | 7b755ab6e7ac366a9d416c9a62164f57fa45ce37 | [log] [tgz] |
---|---|---|
author | mhoshino <mhoshino@mirantis.com> | Mon Jun 11 06:39:32 2018 +0000 |
committer | mhoshino <mhoshino@mirantis.com> | Mon Jun 11 06:41:13 2018 +0000 |
tree | 30be9dcc06582c3f0f1ee0d519e1ddbbbc20587d | |
parent | bcdb0c3c4fc872250b215c27f28936ce5d424071 [diff] |
https://mirantis.jira.com/browse/PROD-20664 client_body_buffer_size will not have a proper value when size is below 200. Currently comparing a string (trailing "m" included) with size Change-Id: Ic407480c025da5091905fd7a827068269138943f
diff --git a/nginx/files/proxy.conf b/nginx/files/proxy.conf index 8b4601a..82958c6 100644 --- a/nginx/files/proxy.conf +++ b/nginx/files/proxy.conf
@@ -40,7 +40,7 @@ {%- if location.size is defined %} client_max_body_size {{ location.size }}; - {%- if location.size > 200 %} + {%- if location.size.split("m")[0] | int > 200 %} client_body_buffer_size 200m; {%- else %} client_body_buffer_size 20m;