diff --git a/_ansible/roles/faas/vars/main.yml b/_ansible/roles/faas/vars/main.yml index de3880e..8c3a83f 100644 --- a/_ansible/roles/faas/vars/main.yml +++ b/_ansible/roles/faas/vars/main.yml @@ -8,7 +8,6 @@ svc: faas_function: url-mapper - domain: msrg.cc faas_function: webpage-msrg-cc - www_domain: true caddy_extra: | header /.well-known/* Access-Control-Allow-Origin * diff --git a/_ansible/templates/caddy_site.conf.j2 b/_ansible/templates/caddy_site.conf.j2 index a66b4ea..1e8a7b1 100644 --- a/_ansible/templates/caddy_site.conf.j2 +++ b/_ansible/templates/caddy_site.conf.j2 @@ -34,6 +34,6 @@ {{ caddy_site(svc) }} -{%- for extra_svc in svc.extra_svcs %} +{%- for extra_svc in svc.extra_svcs|default([]) %} {{ caddy_site(extra_svc) }} {% endfor %}