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:
authorVincent Petry <vincent@nextcloud.com>2021-12-06 13:18:59 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-03-07 19:09:57 +0300
commit99d16d9e474e70a648ce16b1a7ec5f5a97165ae4 (patch)
treeaea32e3245f7dd9b1b1ef047e4c08f02e5f108ea /config
parentf8c7124ea4450719c590f0a4366eb024c7c2f9ee (diff)
Add option to disallow creation of local storagesbackport/30111/stable23
Introduce a new config option to prevent web UI admins to create or edit external storages of type "local". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index b099b08f78c..20534cfc66d 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1806,6 +1806,19 @@ $CONFIG = [
'external_storage.auth_availability_delay' => 1800,
/**
+ * Allows to create external storages of type "Local" in the web interface and APIs.
+ *
+ * When disable, it is still possible to create local storages with occ using
+ * the following command:
+ *
+ * % php occ files_external:create /mountpoint local null::null -c datadir=/path/to/data
+ *
+ * Defaults to ``true``
+ *
+ */
+'files_external_allow_create_new_local' => true,
+
+/**
* Specifies how often the local filesystem (the Nextcloud data/ directory, and
* NFS mounts in data/) is checked for changes made outside Nextcloud. This
* does not apply to external storage.