Skip to content

Commit d864ecc

Browse files
Merge pull request #13943 from nextcloud/backport/13941/stable31
2 parents 9bb1630 + 70610d8 commit d864ecc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

admin_manual/configuration_files/primary_storage.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,37 @@ all files for that user in their corresponding bucket.
270270
You can find out more information about upscaling with object storage and Nextcloud in the
271271
`Nextcloud customer portal <https://portal.nextcloud.com/article/object-store-as-primary-storage-16.html>`_.
272272

273+
----------------------------------------------------------------
274+
Multibucket Object Store with per Bucket configuration overrides
275+
----------------------------------------------------------------
276+
277+
When using an Object Store with :code:`'multibucket => true'` it is possible to configure overrides for all config options per bucket:
278+
279+
::
280+
281+
'objectstore' => [
282+
'class' => 'Object\\Storage\\Backend\\Class',
283+
'arguments' => [
284+
'multibucket' => true,
285+
'bucket' => 'nextcloud_',
286+
'perBucket' => [
287+
'nextcloud_1' => [
288+
'port' => 9999,
289+
],
290+
],
291+
],
292+
],
293+
294+
This can be useful for example if you want to configure credentials per bucket that is used by a Team folder.
295+
A script for provisioning new Team folders this way could look like this (first make sure the bucket exists with those credentials):
296+
297+
::
298+
299+
occ config:system:set --type=string --value=KEYVALUE objectstore arguments perBucket BUCKETNAME key
300+
occ config:system:set --type=string --value=SECRETVALUE objectstore arguments perBucket BUCKETNAME secret
301+
occ groupfolders:create --bucket BUCKETNAME TEAMFOLDERNAME
302+
303+
The credentials must be set before the new Team folder is created.
273304

274305
---------------------------
275306
S3 SSE-C encryption support

0 commit comments

Comments
 (0)