File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,8 @@ nginx_http_template:
490
490
# always: false
491
491
proxy_connect_timeout : null
492
492
proxy_pass : http://backend
493
- # rewrite: /foo(.*) /$1 break
493
+ # rewrites:
494
+ # - /foo(.*) /$1 break
494
495
# proxy_pass_request_body: off
495
496
# allows:
496
497
# - 192.168.1.0/24
Original file line number Diff line number Diff line change @@ -304,7 +304,8 @@ nginx_http_template:
304
304
# always: false
305
305
proxy_connect_timeout : null
306
306
proxy_pass : http://backend
307
- # rewrite: /foo(.*) /$1 break
307
+ # rewrites:
308
+ # - /foo(.*) /$1 break
308
309
# proxy_pass_request_body: off
309
310
# allows:
310
311
# - 192.168.1.0/24
Original file line number Diff line number Diff line change @@ -196,8 +196,10 @@ server {
196
196
proxy_connect_timeout {{ item.value.reverse_proxy.locations[location] .proxy_connect_timeout }};
197
197
{% endif %}
198
198
proxy_pass {{ item.value.reverse_proxy.locations[location] .proxy_pass }};
199
- {% if item .value .reverse_proxy .locations [location ].rewrite is defined %}
200
- rewrite {{ item.value.reverse_proxy.locations[location] .rewrite }};
199
+ {% if item .value .reverse_proxy .locations [location ].rewrites is defined %}
200
+ {% for rewrite in item .value .reverse_proxy .locations [location ].rewrites %}
201
+ rewrite {{ rewrite }};
202
+ {% endfor %}
201
203
{% endif %}
202
204
{% if item .value .reverse_proxy .locations [location ].proxy_read_timeout is defined and item .value .reverse_proxy .locations [location ].proxy_read_timeout %}
203
205
proxy_read_timeout {{ item.value.reverse_proxy.locations[location] .proxy_read_timeout }};
You can’t perform that action at this time.
0 commit comments