From df3bc644d6119acd0d5420a6f2d313b31da1bdff Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Sun, 4 Feb 2024 13:45:20 +0000 Subject: [PATCH] templates/nextcloud-web.quadlet.j2 aktualisiert --- templates/nextcloud-web.quadlet.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/nextcloud-web.quadlet.j2 b/templates/nextcloud-web.quadlet.j2 index ecf545d..d76e835 100644 --- a/templates/nextcloud-web.quadlet.j2 +++ b/templates/nextcloud-web.quadlet.j2 @@ -14,7 +14,13 @@ Network=nextcloud.network Volume=/var/nextcloud/web/nginx.conf:/etc/nginx/nginx.conf Volume=/var/nextcloud/app:/var/www/html:z + +Label="traefik.http.middlewares.nextcloud_redirectregex.redirectregex.permanent=true" +Label="traefik.http.middlewares.nextcloud_redirectregex.redirectregex.regex=https://(.*)/.well-known/(?:card|cal)dav" +Label="traefik.http.middlewares.nextcloud_redirectregex.redirectregex.replacement=https://$${1}/remote.php/dav" + {% for domain in nextcloud_domains -%} +Label="traefik.http.routers.nextcloud{{loop.index}}.middlewares=nextcloud_redirectregex" 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 }}`)"