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
committerVincent Petry <vincent@nextcloud.com>2021-12-15 11:15:31 +0300
commitea302975526ba8fcb5abcca76daa6038439d053e (patch)
treef00714de6e983897719b98cb3c56ed5476156823 /config
parenta47da9722dfaec8d83e9c8543ed0c31138a909da (diff)
Add option to disallow creation of local storages
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 4a28748b69c..daac86f42f7 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1747,6 +1747,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.