fix vhost template if the vhost doesn't have a backend
This commit is contained in:
parent
19528852d8
commit
fd0e8d3d28
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
{% set vhost = {}|combine(nginx_vhosts_defaults, item.value, recursive=True) %}
|
{% set vhost = {}|combine(nginx_vhosts_defaults, item.value, recursive=True) %}
|
||||||
{% set vhost_name = item.key %}
|
{% set vhost_name = item.key %}
|
||||||
{% set vhost_headers = {}|combine(nginx.add_headers, vhost.add_headers) %}
|
{% 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) %}
|
{% macro nginx_listen(ips, port, options) %}
|
||||||
{% for ip in ips %}
|
{% for ip in ips %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue