From 19528852d8696d36500ab0395e948ecb87635571 Mon Sep 17 00:00:00 2001 From: nd Date: Fri, 20 Aug 2021 11:56:00 +0200 Subject: [PATCH] Revert "fix vhost template if the vhost doesn't have a backend" This reverts commit 87e7cacfd956132c100a46435613042197c868a7. --- 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 c964878..f93b175 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 %}