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
|
||||
proxy_connect_timeout: null
|
||||
proxy_pass: http://backend
|
||||
#rewrite: /foo(.*) /$1 break
|
||||
#proxy_pass_request_body: off
|
||||
proxy_set_header:
|
||||
header_host:
|
||||
|
@ -275,6 +275,7 @@ nginx_http_template:
|
||||
#always: false
|
||||
proxy_connect_timeout: null
|
||||
proxy_pass: http://backend
|
||||
#rewrite: /foo(.*) /$1 break
|
||||
#proxy_pass_request_body: off
|
||||
proxy_set_header:
|
||||
header_host:
|
||||
|
@ -180,6 +180,9 @@ server {
|
||||
proxy_connect_timeout {{ item.value.reverse_proxy.locations[location].proxy_connect_timeout }};
|
||||
{% endif %}
|
||||
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 %}
|
||||
proxy_read_timeout {{ item.value.reverse_proxy.locations[location].proxy_read_timeout }};
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user