From 56c0b90e0988a1d3c4b84853fbd75fd1283f6238 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Sun, 4 Feb 2024 01:40:43 +0100 Subject: [PATCH] fix: foreach --- templates/nextcloud-app.quadlet.j2 | 2 +- templates/nextcloud-web.quadlet.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/nextcloud-app.quadlet.j2 b/templates/nextcloud-app.quadlet.j2 index cf08f5b..b02e838 100644 --- a/templates/nextcloud-app.quadlet.j2 +++ b/templates/nextcloud-app.quadlet.j2 @@ -16,7 +16,7 @@ Environment=POSTGRES_USER=nextcloud Environment=POSTGRES_PASSWORD=nextcloud Environment=POSTGRES_DB=nextcloud -Environment=NEXTCLOUD_TRUSTED_DOMAINS=(% for domain in nextcloud_domains %){{domain}} (% endfor %) +Environment=NEXTCLOUD_TRUSTED_DOMAINS={% for domain in nextcloud_domains %}{{domain}} {% endfor %} Network=nextcloud.network diff --git a/templates/nextcloud-web.quadlet.j2 b/templates/nextcloud-web.quadlet.j2 index b39da6b..4c970f4 100644 --- a/templates/nextcloud-web.quadlet.j2 +++ b/templates/nextcloud-web.quadlet.j2 @@ -14,13 +14,13 @@ Network=nextcloud.network Volume=/var/nextcloud/web/nginx.conf:/etc/nginx/nginx.conf Volume=/var/nextcloud/app:/var/www/html:z -(% for domain in nextcloud_domains %) +{% for domain in nextcloud_domains %} Label="traefik.http.routers.nextcloud{{loop.index}}.tls.certresolver=resolver" Label="traefik.http.routers.nextcloud{{loop.index}}.tls=true" Label="traefik.http.routers.nextcloud{{loop.index}}.rule=Host(`{{ domain }}`)" Label="traefik.http.routers.nextcloud{{loop.index}}.service=nextcloud{{loop.index}}" Label="traefik.http.services.nextcloud{{loop.index}}.loadbalancer.server.port=80" -(% endfor %) +{% endfor %} [Service] Restart=on-failure