Add ability to rewrite proxy pass locations (#161)
This commit is contained in:
parent
a8b7fff7fc
commit
5416fb28e0
@ -463,6 +463,7 @@ nginx_http_template:
|
|||||||
#always: false
|
#always: false
|
||||||
proxy_connect_timeout: null
|
proxy_connect_timeout: null
|
||||||
proxy_pass: http://backend
|
proxy_pass: http://backend
|
||||||
|
#rewrite: /foo(.*) /$1 break
|
||||||
#proxy_pass_request_body: off
|
#proxy_pass_request_body: off
|
||||||
proxy_set_header:
|
proxy_set_header:
|
||||||
header_host:
|
header_host:
|
||||||
|
@ -275,6 +275,7 @@ nginx_http_template:
|
|||||||
#always: false
|
#always: false
|
||||||
proxy_connect_timeout: null
|
proxy_connect_timeout: null
|
||||||
proxy_pass: http://backend
|
proxy_pass: http://backend
|
||||||
|
#rewrite: /foo(.*) /$1 break
|
||||||
#proxy_pass_request_body: off
|
#proxy_pass_request_body: off
|
||||||
proxy_set_header:
|
proxy_set_header:
|
||||||
header_host:
|
header_host:
|
||||||
|
@ -180,6 +180,9 @@ server {
|
|||||||
proxy_connect_timeout {{ item.value.reverse_proxy.locations[location].proxy_connect_timeout }};
|
proxy_connect_timeout {{ item.value.reverse_proxy.locations[location].proxy_connect_timeout }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
proxy_pass {{ item.value.reverse_proxy.locations[location].proxy_pass }};
|
proxy_pass {{ item.value.reverse_proxy.locations[location].proxy_pass }};
|
||||||
|
{% if item.value.reverse_proxy.locations[location].rewrite is defined %}
|
||||||
|
rewrite {{ item.value.reverse_proxy.locations[location].rewrite }};
|
||||||
|
{% endif %}
|
||||||
{% if item.value.reverse_proxy.locations[location].proxy_read_timeout is defined and item.value.reverse_proxy.locations[location].proxy_read_timeout %}
|
{% if item.value.reverse_proxy.locations[location].proxy_read_timeout is defined and item.value.reverse_proxy.locations[location].proxy_read_timeout %}
|
||||||
proxy_read_timeout {{ item.value.reverse_proxy.locations[location].proxy_read_timeout }};
|
proxy_read_timeout {{ item.value.reverse_proxy.locations[location].proxy_read_timeout }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user