Skip to content

Commit

Permalink
Added escape character handling note for Traefik provider files
Browse files Browse the repository at this point in the history
Relates to #70
  • Loading branch information
ckulka committed Jan 25, 2022
1 parent bcea182 commit 1b7e6fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/docker-compose.ssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ services:
traefik.enable: "true"
traefik.frontend.rule: "Host: dav.example.com"
traefik.port: 80
# Required for iOS, see https://github.com/ckulka/baikal-docker/issues/37
# Traefik middleware required for iOS, see https://github.com/ckulka/baikal-docker/issues/37.
# When using a Traefik provider file (YAML/TOML) instead of these labels, remove the escape
# character from "*.redirectregex.replacement" - it's only needed in Docker Compose YAML files:
# redirectRegex:
# replacement: "https://$1/dav/php/
traefik.http.middlewares.baikal-dav.redirectregex.regex: "https://(.*)/.well-known/(card|cal)dav"
traefik.http.middlewares.baikal-dav.redirectregex.replacement: "https://$$1/dav.php/"
traefik.http.middlewares.baikal-dav.redirectregex.permanent: "true"
Expand Down

0 comments on commit 1b7e6fa

Please sign in to comment.