Skip to content

Commit

Permalink
Merge pull request #38 from smaktacular/37-fix-405-traefik
Browse files Browse the repository at this point in the history
Added URI rewrite to Traefik example to address iOS issue described in #37
  • Loading branch information
ckulka authored May 18, 2021
2 parents baf000c + 8cb1ae3 commit 85b95f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/docker-compose.ssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ 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.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"
traefik.http.routers.baikal.middlewares: "baikal-dav"

volumes:
- config:/var/www/baikal/config
- data:/var/www/baikal/Specific
Expand Down

0 comments on commit 85b95f6

Please sign in to comment.