feat(deployment): Add Dokku Nginx configuration for CalDAV and CardDAV
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build was killed

Prevent potential issues with calendar and contact sync by redirecting
well-known URLs.

- Add rewrite rules for .well-known/carddav to redirect to
  remote.php/dav
- Add rewrite rules for .well-known/caldav to redirect to remote.php/dav
- Update README with instructions to add these rewrite rules in Dokku
  Nginx configuration

Signed-off-by: Glenn <glenux@glenux.net>
This commit is contained in:
Glenn Y. Rolland 2025-04-22 09:58:41 +02:00
parent a4467929c0
commit c0b9a682ac

View file

@ -34,6 +34,11 @@ Run after install
./occ config:system:set maintenance_window_start --type=integer --value=1
Add this in dokku nginx
rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ permanent;
rewrite ^/\.well-known/caldav https://$server_name/remote.php/dav/ permanent;
Add this in crontab
dokku enter cloud web su -l -s /bin/bash - www-data -c "cd html && php -dmemory_limit=-1 ./occ app:update --all"