Skip to content

Commit

Permalink
fix logic for maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
nemd committed Apr 10, 2020
1 parent 90faafe commit a3b7c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ server {
index index.html;
}
{%- endif %}
{%- if UPSTREAMS and not (MAINTENANCE and MAINTENANCE == 'true') %}
{%- if UPSTREAMS and MAINTENANCE != 'true' %}
{%- for upstream in UPSTREAMS.split(',') %}
{% set upstream_parts = upstream.split(':') %}
location {{ upstream_parts[0] }} {
Expand Down

0 comments on commit a3b7c21

Please sign in to comment.