Compare commits

...

4 commits

Author SHA1 Message Date
6d720541d6 Merge pull request 'develop' (#15) from develop into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #15
2025-04-22 08:43:49 +00:00
c0b9a682ac 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>
2025-04-22 09:58:41 +02:00
a4467929c0 Bump patch version 2025-04-22 09:56:38 +02:00
15026b51ad docs(readme): update setup instructions for app configuration
All checks were successful
continuous-integration/drone/push Build is passing
Improves clarity and accuracy of setup instructions to prevent misconfiguration during deployment.

* Add explicit commands for setting file lock timeout and chunk size using `./occ`.
* Include command for setting maintenance window start time to ensure proper scheduling.
* Remove redundant and incorrect command comments to prevent confusion.

Signed-off-by: Glenn <glenux@glenux.net>
2025-03-10 16:48:01 +01:00
2 changed files with 17 additions and 4 deletions

View file

@ -19,7 +19,8 @@
# FROM nextcloud:28.0.1-apache # FROM nextcloud:28.0.1-apache
# FROM nextcloud:29.0.3-apache # FROM nextcloud:29.0.3-apache
# FROM nextcloud:30.0.4-apache # FROM nextcloud:30.0.4-apache
FROM nextcloud:31.0.0-apache # FROM nextcloud:31.0.0-apache
FROM nextcloud:31.0.4-apache
# This is a stupid comment for a demo (remove later) # This is a stupid comment for a demo (remove later)

View file

@ -22,11 +22,23 @@ ssh dokku@buddha-apps.boldcode.io app-json:set cloud appjson-path /app/app.json
Run after install Run after install
config:app:set files_lock lock_timeout --value '30'
config:app:set files max_chunk_size --value 20971520
# FIXME: config:global:set --value '/Shared' share_folder # FIXME: config:global:set --value '/Shared' share_folder
# set file lock timeout
./occ config:app:set files_lock lock_timeout --value '30'
# set file chunk size
./occ config:app:set files max_chunk_size --value 20971520
# set maintenance window
./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 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" dokku enter cloud web su -l -s /bin/bash - www-data -c "cd html && php -dmemory_limit=-1 ./occ app:update --all"