From 15026b51adc3e261e097143ba986ce0b9efa1b10 Mon Sep 17 00:00:00 2001 From: Glenn Date: Mon, 10 Mar 2025 16:48:01 +0100 Subject: [PATCH 1/3] docs(readme): update setup instructions for app configuration 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 --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b5939a1..a42af71 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,18 @@ ssh dokku@buddha-apps.boldcode.io app-json:set cloud appjson-path /app/app.json 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 + # 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 crontab dokku enter cloud web su -l -s /bin/bash - www-data -c "cd html && php -dmemory_limit=-1 ./occ app:update --all" From a4467929c0eb352dab683ab4ca32a313034b2a50 Mon Sep 17 00:00:00 2001 From: Glenn Date: Tue, 22 Apr 2025 09:56:38 +0200 Subject: [PATCH 2/3] Bump patch version --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a0d97f0..4d7df5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,8 @@ # FROM nextcloud:28.0.1-apache # FROM nextcloud:29.0.3-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) From c0b9a682acf771b695d0fe4b51bba2935001e68c Mon Sep 17 00:00:00 2001 From: Glenn Date: Tue, 22 Apr 2025 09:58:41 +0200 Subject: [PATCH 3/3] feat(deployment): Add Dokku Nginx configuration for CalDAV and CardDAV 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 --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index a42af71..35bd1a2 100644 --- a/README.md +++ b/README.md @@ -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"