From 72818c0d79a71c3d10ba5fec1bec815234495294 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Wed, 1 May 2024 22:58:52 -0700 Subject: [PATCH] bump chunkSize in nextcloud to boost performance for small files From https://help.nextcloud.com/t/very-slow-sync-for-small-files/11064/13 Not sure it works. --- modules/services/nextcloud-server.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/services/nextcloud-server.nix b/modules/services/nextcloud-server.nix index 8dae3ac..a91a07e 100644 --- a/modules/services/nextcloud-server.nix +++ b/modules/services/nextcloud-server.nix @@ -613,6 +613,9 @@ in # Use persistent SQL connections. "dbpersistent" = "true"; + + # https://help.nextcloud.com/t/very-slow-sync-for-small-files/11064/13 + "chunkSize" = "5120MB"; }; phpOptions = { @@ -629,6 +632,8 @@ in "opcache.revalidate_freq" = "1"; short_open_tag = "Off"; + # https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/big_file_upload_configuration.html#configuring-php + # > Output Buffering must be turned off [...] or PHP will return memory-related errors. output_buffering = "Off"; # Needed to avoid corruption per https://docs.nextcloud.com/server/21/admin_manual/configuration_server/caching_configuration.html#id2