Skip to content

Commit

Permalink
baikal: add redirect middleware to make it work with iOS (#58)
Browse files Browse the repository at this point in the history
* baikal: add redirect middleware to make it work with iOS

* baikal: bump version
  • Loading branch information
cyxou authored May 16, 2023
1 parent 526dc52 commit 4983eaa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/baikal/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: baikal
description: The open source CardDAV, CalDAV and WebDAV server
version: 1.0.0
version: 1.1.0
appVersion: 0.9.3-nginx
kubeVersion: ">=1.16.0-0"
type: application
Expand Down
14 changes: 14 additions & 0 deletions charts/baikal/templates/middleware.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# For iOS clients we need to redirect /.well-known/carddav and
# /.well-known/caldav to just /dav.php
# See https://homan.ee/en/iphone-calendar-synchronization-ios-settings-for-baikal-caldav
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: redirect-card-cal-dav
labels:
{{- include "librepod.labels" . | nindent 4 }}
spec:
redirectRegex:
regex: https://baikal.libre.pod/.well-known/(card|cal)dav
replacement: https://baikal.libre.pod/dav.php/
permanent: true
3 changes: 3 additions & 0 deletions charts/baikal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ ingress:
enabled: true
hosts:
- host: baikal.libre.pod
# See templates/middleware.yaml for details.
middlewares:
- redirect-card-cal-dav

dashboard:
expose: true
Expand Down

0 comments on commit 4983eaa

Please sign in to comment.