Add WebDAV interface redirect

This commit is contained in:
Kris Lamoureux 2020-07-28 01:04:23 -04:00
parent 241b8715b0
commit e2b1d4f57a
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -30,6 +30,9 @@
labels:
traefik.http.routers.nextcloud.rule: "Host(`{{ nextcloud_domain }}`)"
traefik.http.routers.nextcloud.entrypoints: websecure
traefik.http.middlewares.nextcloud-webdav.redirectregex.regex: "https://(.*)/.well-known/(card|cal)dav"
traefik.http.middlewares.nextcloud-webdav.redirectregex.replacement: "https://${1}/remote.php/dav/"
traefik.http.middlewares.nextcloud-webdav.redirectregex.permanent: "true"
traefik.docker.network: traefik
traefik.enable: "true"