Skip to content

Commit dad58ec

Browse files
evilhamstermanalessfg
authored andcommitted
Ignore undefined values for autoindex and health check (#80)
* Ignore undefined autoindex * ignore undefined health_check_plus
1 parent c2cdc68 commit dad58ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/http/default.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ server {
2323
listen {{ item.value.port }};
2424
{% endif %}
2525
server_name {{ item.value.server_name }};
26-
{% if item.value.autoindex %}
26+
{% if item.value.autoindex is defined and item.value.autoindex %}
2727
autoindex on;
2828
{% endif %}
2929
{% if item.value.load_balancer is defined %}
3030
{% for location in item.value.load_balancer.locations %}
3131
location {{ item.value.load_balancer.locations[location].location }} {
3232
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 %}
3434
health_check;
3535
{% endif %}
3636
proxy_set_header Host $host;

0 commit comments

Comments
 (0)