From 54df4b7fcde823c5ca0e5bd675b5bb6eb9fb0820 Mon Sep 17 00:00:00 2001 From: Glenn <glenux@glenux.net> Date: Mon, 3 Mar 2025 15:50:32 +0100 Subject: [PATCH 1/4] chore(Dockerfile): Update Nextcloud version to 29.0.12 * Update Nextcloud version from 29.0.7 to 29.0.12 in Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 43030c6..9aba71a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ # FROM nextcloud:27.1.4-apache # FROM nextcloud:28.0.1-apache # FROM nextcloud:29.0.3-apache -FROM nextcloud:29.0.7-apache +FROM nextcloud:29.0.12-apache # This is a stupid comment for a demo (remove later) From f52664d880288eef33df176643de232b461e4dd9 Mon Sep 17 00:00:00 2001 From: Glenn <glenux@glenux.net> Date: Mon, 3 Mar 2025 17:14:07 +0100 Subject: [PATCH 2/4] Fix file upload issues by adjusting configuration settings Without this change, file uploads could fail due to insufficient timeout settings, chunk size limits, and maximum body size restrictions. * Change the order of arguments for setting lock timeout to match expected format * Add configuration setting for max chunk size to 20971520 bytes * Increase Nginx client max body size to 500m to accommodate larger file uploads Signed-off-by: Glenn <glenux@glenux.net> --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd81c4a..b5939a1 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,13 @@ ssh dokku@buddha-apps.boldcode.io app-json:set cloud appjson-path /app/app.json Run after install - config:app:set --value '30' files_lock lock_timeout + 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 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 nginx:set cloud client-max-body-size 500m From 20a9abe04d424981bd8eb9c440bda6203e4b3ee3 Mon Sep 17 00:00:00 2001 From: Glenn <glenux@glenux.net> Date: Mon, 3 Mar 2025 17:14:27 +0100 Subject: [PATCH 3/4] Increase max_input_time to prevent file upload timeout Without this change, users might experience timeouts during large file uploads, leading to a poor user experience and potential data loss. * Increase max_input_time from 120 to 300 to match max_execution_time Signed-off-by: Glenn <glenux@glenux.net> --- php-uploads.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-uploads.ini b/php-uploads.ini index c60e710..a14d2e3 100644 --- a/php-uploads.ini +++ b/php-uploads.ini @@ -2,4 +2,4 @@ file_uploads = On upload_max_filesize = 128M post_max_size = 128M max_execution_time = 1200 -max_input_time = 120 +max_input_time = 300 From 3e5398bd337dbc6b0f8abe97064373b5b4f42551 Mon Sep 17 00:00:00 2001 From: Glenn <glenux@glenux.net> Date: Mon, 3 Mar 2025 17:17:03 +0100 Subject: [PATCH 4/4] chore(Dockerfile): update Nextcloud version to 31.0.0 * Changed Nextcloud version from 30.0.4 to 31.0.0 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ad2373a..a0d97f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,8 @@ # FROM nextcloud:27.1.4-apache # FROM nextcloud:28.0.1-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 # This is a stupid comment for a demo (remove later)