Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shawnhank/aba78e8ebd1c7de5f3868ea864a4d0fd to your computer and use it in GitHub Desktop.
Save shawnhank/aba78e8ebd1c7de5f3868ea864a4d0fd to your computer and use it in GitHub Desktop.
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