From 99d16d9e474e70a648ce16b1a7ec5f5a97165ae4 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 6 Dec 2021 11:18:59 +0100 Subject: 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 --- config/config.sample.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'config') 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 @@ -1805,6 +1805,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 -- cgit v1.2.3