Add proxy_buffering directive to reverse proxy block (#149)

This commit is contained in:
Philip Henning 2019-07-15 14:41:19 +02:00 committed by Alessandro Fael Garcia
parent 2d803f207c
commit f5f3a65fd8
4 changed files with 6 additions and 0 deletions

View File

@ -503,6 +503,7 @@ nginx_http_template:
proxy_ignore_headers:
- Vary
- Cache-Control
proxy_buffering: false
proxy_http_version: 1.0
websocket: false
auth_basic: null

View File

@ -315,6 +315,7 @@ nginx_http_template:
proxy_ignore_headers:
- Vary
- Cache-Control
proxy_buffering: false
proxy_http_version: 1.0
websocket: false
auth_basic: null

View File

@ -244,6 +244,9 @@ server {
{% if item.value.reverse_proxy.locations[location].proxy_ignore_headers is defined %}
proxy_ignore_headers {{ item.value.reverse_proxy.locations[location].proxy_ignore_headers | join(" ") }};
{% endif %}
{% if item.value.reverse_proxy.locations[location].proxy_buffering is defined %}
proxy_buffering {{ item.value.reverse_proxy.locations[location].proxy_buffering | ternary("on", "off") }};
{% endif %}
{% if (item.value.reverse_proxy.health_check_plus is defined) and item.value.reverse_proxy.health_check_plus %}
health_check;
{% endif %}

View File

@ -87,6 +87,7 @@
header_x_forwarded_proto:
name: X-Forwarded-Proto
value: $scheme
proxy_buffering: false
backend:
location: /backend
proxy_pass: http://backend_servers/