Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorplumbeo <plumbeo@users.noreply.github.com>2022-04-16 18:14:13 +0300
committerplumbeo <plumbeo@users.noreply.github.com>2022-05-04 18:38:25 +0300
commit1258caeab7dec7510781ba7b575390459e2e61e5 (patch)
tree8762cf7c8d0b7406478f1a9cd39da353d0a90647 /config
parent20d7bf8a880ddf41874afdaf3784d29bc1bc925d (diff)
Save encrypted files in binary format
Default to the more space-efficient binary encoding for newly encrypted files instead of the traditional base64 encoding, eliminating the 33% overhead. The new option 'encryption.use_legacy_encoding' allows to force the legacy encoding format if needed. Files encoded in the old format remain readable. Based on https://github.com/owncloud/encryption/pull/224 and https://github.com/owncloud/core/pull/38249 by karakayasemi. Signed-off-by: plumbeo <plumbeo@users.noreply.github.com>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 54d3d46070a..77e587acf83 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1799,6 +1799,15 @@ $CONFIG = [
'cipher' => 'AES-256-CTR',
/**
+ * Use the legacy base64 format for encrypted files instead of the more space-efficient
+ * binary format. The option affects only newly written files, existing encrypted files
+ * will not be touched and will remain readable whether they use the new format or not.
+ *
+ * Defaults to ``false``
+ */
+'encryption.use_legacy_base64_encoding' => false,
+
+/**
* The minimum Nextcloud desktop client version that will be allowed to sync with
* this server instance. All connections made from earlier clients will be denied
* by the server. Defaults to the minimum officially supported Nextcloud desktop