From dc00b4cbaf7b9f726ab33af30592161969ac7423 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Sun, 4 Feb 2024 01:53:47 +0100 Subject: [PATCH] fix: variable --- tasks/main.yml | 2 +- templates/nextcloud-app.quadlet.j2 | 2 +- templates/nextcloud-web.quadlet.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 26e9cb2..9591718 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -70,7 +70,7 @@ ansible.builtin.template: src: nextcloud-web.quadlet.j2 dest: "/etc/containers/systemd/nextcloud-web.container" - + - name: "Reload systemd" ansible.builtin.systemd: daemon_reload: true diff --git a/templates/nextcloud-app.quadlet.j2 b/templates/nextcloud-app.quadlet.j2 index b02e838..6a5e470 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={{ nextcloud_domains|join(" ") }} Network=nextcloud.network diff --git a/templates/nextcloud-web.quadlet.j2 b/templates/nextcloud-web.quadlet.j2 index 4c970f4..ecf545d 100644 --- a/templates/nextcloud-web.quadlet.j2 +++ b/templates/nextcloud-web.quadlet.j2 @@ -14,7 +14,7 @@ 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 }}`)"