From 87e7cacfd956132c100a46435613042197c868a7 Mon Sep 17 00:00:00 2001 From: nd Date: Fri, 20 Aug 2021 11:43:04 +0200 Subject: [PATCH] fix vhost template if the vhost doesn't have a backend --- templates/vhost.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/vhost.conf.j2 b/templates/vhost.conf.j2 index f93b175..c964878 100644 --- a/templates/vhost.conf.j2 +++ b/templates/vhost.conf.j2 @@ -2,7 +2,7 @@ {% set vhost = {}|combine(nginx_vhosts_defaults, item.value, recursive=True) %} {% set vhost_name = item.key %} {% set vhost_headers = {}|combine(nginx.add_headers, vhost.add_headers) %} -{% set vhost_proxy_location = {}|combine(nginx_proxy_location, {'backend': vhost.backend }) if vhost.backend|d(False) else [] %} +{% set vhost_proxy_location = {}|combine(nginx_proxy_location, {'backend': vhost.backend }) if vhost.backend|d(False) else {} %} {% macro nginx_listen(ips, port, options) %} {% for ip in ips %}