aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-10-17 09:19:44 +0200
committerprovokateurin <kate@provokateurin.de>2024-10-21 12:03:33 +0200
commitba3d67d2a001a4288d411a4f32dcd71bd45391d4 (patch)
treeed4949b1b9866d0e149f923d4efeecacdaffb93c /config
parent4d8d11d2f79da348644e0902e78a2f000498cd52 (diff)
downloadnextcloud-server-ba3d67d2a001a4288d411a4f32dcd71bd45391d4.tar.gz
nextcloud-server-ba3d67d2a001a4288d411a4f32dcd71bd45391d4.zip
feat(files): Expose chunked upload config via capabilitiesfeat/files/chunked-upload-config-capabilities
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 709c1fb73c6..c8ee3c301ae 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -2556,4 +2556,22 @@ $CONFIG = [
'/bin',
'/opt/bin',
],
+
+/**
+ * The maximum chunk size to use for chunked uploads.
+ * A bigger chunk size results in higher throughput, but above 100 MiB there are only diminishing returns,
+ * while services like Cloudflare already limit to 100 MiB.
+ *
+ * Defaults to 100 MiB.
+ */
+'files.chunked_upload.max_size' => 100 * 1024 * 1024,
+
+/**
+ * The maximum number of chunks uploaded in parallel during chunked uploads.
+ * A bigger count results in higher throughput, but will also consume more server workers,
+ * while the improvements diminish.
+ *
+ * Defaults to 5.
+ */
+'files.chunked_upload.max_parallel_count' => 5,
];