File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ nginx_http_template:
374
374
proxy_ignore_headers :
375
375
- Vary
376
376
- Cache-Control
377
+ proxy_redirect : false
377
378
websocket : false
378
379
auth_basic : null
379
380
auth_basic_file : null
Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ server {
75
75
auth_basic_user_file {{ item.value.reverse_proxy.locations[location] .auth_basic_file }};
76
76
{% endif %}
77
77
proxy_pass {{ item.value.reverse_proxy.locations[location] .proxy_pass }};
78
-
78
+ {% if item .value .reverse_proxy .locations [location ].proxy_redirect is defined %}
79
+ proxy_redirect {{ item.value.reverse_proxy.locations[location] .proxy_redirect | ternary(item.value.reverse_proxy.locations[location] .proxy_redirect, "off") }};
80
+ {% endif %}
79
81
{% if item .value .reverse_proxy .locations [location ].proxy_cache is defined %}
80
82
proxy_cache {{ item.value.reverse_proxy.locations[location] .proxy_cache }};
81
83
{% endif %}
Original file line number Diff line number Diff line change 59
59
proxy_ignore_headers :
60
60
- Vary
61
61
- Cache-Control
62
+ proxy_redirect : false
62
63
backend :
63
64
location : /backend
64
65
proxy_pass : http://backend_servers/
72
73
- http_500
73
74
- http_502
74
75
- http_503
76
+ proxy_redirect : default
75
77
upstreams :
76
78
frontend_upstream :
77
79
name : frontend_servers
You can’t perform that action at this time.
0 commit comments