fix: foreach
This commit is contained in:
parent
2702ae93f9
commit
56c0b90e09
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user