File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
admin_manual/configuration_files Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,37 @@ all files for that user in their corresponding bucket.
271271You can find out more information about upscaling with object storage and Nextcloud in the
272272`Nextcloud customer portal <https://portal.nextcloud.com/article/object-store-as-primary-storage-16.html >`_.
273273
274+ ----------------------------------------------------------------
275+ Multibucket Object Store with per Bucket configuration overrides
276+ ----------------------------------------------------------------
277+
278+ When using an Object Store with :code: `'multibucket => true' ` it is possible to configure overrides for all config options per bucket:
279+
280+ ::
281+
282+ 'objectstore' => [
283+ 'class' => 'Object\\Storage\\Backend\\Class',
284+ 'arguments' => [
285+ 'multibucket' => true,
286+ 'bucket' => 'nextcloud_',
287+ 'perBucket' => [
288+ 'nextcloud_1' => [
289+ 'port' => 9999,
290+ ],
291+ ],
292+ ],
293+ ],
294+
295+ This can be useful for example if you want to configure credentials per bucket that is used by a Team folder.
296+ A script for provisioning new Team folders this way could look like this (first make sure the bucket exists with those credentials):
297+
298+ ::
299+
300+ occ config:system:set --type=string --value=KEYVALUE objectstore arguments perBucket BUCKETNAME key
301+ occ config:system:set --type=string --value=SECRETVALUE objectstore arguments perBucket BUCKETNAME secret
302+ occ groupfolders:create --bucket BUCKETNAME TEAMFOLDERNAME
303+
304+ The credentials must be set before the new Team folder is created.
274305
275306---------------------------
276307Multi-instance Object Store
You can’t perform that action at this time.
0 commit comments