Forked from containeroo-gists/traefik-2.2-nextcloud-labels.yml
Created
August 6, 2021 22:22
-
-
Save shawnhank/aba78e8ebd1c7de5f3868ea864a4d0fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.nextcloud.rule=Host(`nextcloud.example.com`)" | |
- "traefik.http.middlewares.nextcloud-redirectregex.redirectregex.regex=https://(.*)/.well-known/(card|cal)dav" | |
- "traefik.http.middlewares.nextcloud-redirectregex.redirectregex.replacement=https://$$1/remote.php/dav/" | |
- "traefik.http.middlewares.nextcloud-redirectregex.redirectregex.permanent=true" | |
- "traefik.http.routers.nextcloud.middlewares=nextcloud-redirectregex" | |
- "traefik.http.routers.nextcloud.service=nextcloud" | |
- "traefik.http.services.nextcloud.loadbalancer.server.port=80" | |
- "traefik.docker.network=proxy" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment