File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ server {
23
23
listen {{ item.value.port }};
24
24
{% endif %}
25
25
server_name {{ item.value.server_name }};
26
- {% if item .value .autoindex %}
26
+ {% if item .value .autoindex is defined and item . value . autoindex %}
27
27
autoindex on;
28
28
{% endif %}
29
29
{% if item .value .load_balancer is defined %}
30
30
{% for location in item .value .load_balancer .locations %}
31
31
location {{ item.value.load_balancer.locations[location] .location }} {
32
32
proxy_pass http://{{ item.value.load_balancer.locations[location] .proxy_pass }};
33
- {% if item .value .load_balancer .health_check_plus %}
33
+ {% if item .value .load_balancer .health_check_plus is defined and item . value . load_balancer . health_check_plus %}
34
34
health_check;
35
35
{% endif %}
36
36
proxy_set_header Host $host;
You can’t perform that action at this time.
0 commit comments