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