Add proxy_buffering directive to reverse proxy block (#149)
This commit is contained in:
parent
2d803f207c
commit
f5f3a65fd8
@ -503,6 +503,7 @@ nginx_http_template:
|
|||||||
proxy_ignore_headers:
|
proxy_ignore_headers:
|
||||||
- Vary
|
- Vary
|
||||||
- Cache-Control
|
- Cache-Control
|
||||||
|
proxy_buffering: false
|
||||||
proxy_http_version: 1.0
|
proxy_http_version: 1.0
|
||||||
websocket: false
|
websocket: false
|
||||||
auth_basic: null
|
auth_basic: null
|
||||||
|
@ -315,6 +315,7 @@ nginx_http_template:
|
|||||||
proxy_ignore_headers:
|
proxy_ignore_headers:
|
||||||
- Vary
|
- Vary
|
||||||
- Cache-Control
|
- Cache-Control
|
||||||
|
proxy_buffering: false
|
||||||
proxy_http_version: 1.0
|
proxy_http_version: 1.0
|
||||||
websocket: false
|
websocket: false
|
||||||
auth_basic: null
|
auth_basic: null
|
||||||
|
@ -244,6 +244,9 @@ server {
|
|||||||
{% if item.value.reverse_proxy.locations[location].proxy_ignore_headers is defined %}
|
{% 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(" ") }};
|
proxy_ignore_headers {{ item.value.reverse_proxy.locations[location].proxy_ignore_headers | join(" ") }};
|
||||||
{% endif %}
|
{% 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 %}
|
{% if (item.value.reverse_proxy.health_check_plus is defined) and item.value.reverse_proxy.health_check_plus %}
|
||||||
health_check;
|
health_check;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -87,6 +87,7 @@
|
|||||||
header_x_forwarded_proto:
|
header_x_forwarded_proto:
|
||||||
name: X-Forwarded-Proto
|
name: X-Forwarded-Proto
|
||||||
value: $scheme
|
value: $scheme
|
||||||
|
proxy_buffering: false
|
||||||
backend:
|
backend:
|
||||||
location: /backend
|
location: /backend
|
||||||
proxy_pass: http://backend_servers/
|
proxy_pass: http://backend_servers/
|
||||||
|
Loading…
Reference in New Issue
Block a user