Added possibility to disable proxy_request_buffering in nginx
Change-Id: I52313b2a59401aebe05c79c0c0cde88dcb1c7a72
Closes-bug: PROD-15961
diff --git a/README.rst b/README.rst
index cde94d3..cbf35a8 100644
--- a/README.rst
+++ b/README.rst
@@ -245,6 +245,7 @@
enabled: true
type: nginx_proxy
proxy:
+ request_buffer: false
buffer:
number: 8
size: 16
diff --git a/nginx/files/proxy.conf b/nginx/files/proxy.conf
index 845d781..eb3c06c 100644
--- a/nginx/files/proxy.conf
+++ b/nginx/files/proxy.conf
@@ -70,6 +70,10 @@
proxy_buffering off;
{%- endif %}
+ {%- if not site.proxy.get('request_buffer', True) %}
+ proxy_request_buffering off;
+ {%- endif %}
+
proxy_http_version 1.1;
{%- if site.proxy.get('headers', True) %}