fix: foreach

This commit is contained in:
Lennard Brinkhaus 2024-02-04 01:40:43 +01:00
parent 2702ae93f9
commit 56c0b90e09
Signed by: lennard.brinkhaus
GPG Key ID: 286421EC53998B22
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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