From 0c6ef34cf619dfd6478a7398784d592c1c53b3fa Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sun, 10 Dec 2023 23:51:56 +0100 Subject: [PATCH] Remove www_domain for msrg.cc (problem with WKD) --- _ansible/roles/faas/vars/main.yml | 1 - _ansible/templates/caddy_site.conf.j2 | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 %}