Skip to content

Commit 0af0781

Browse files
Merge pull request #13941 from nextcloud/feat/admin/object-store-per-bucket-config
2 parents 0334145 + 72d0aa7 commit 0af0781

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
@@ -271,6 +271,37 @@ all files for that user in their corresponding bucket.
271271
You 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
---------------------------
276307
Multi-instance Object Store

0 commit comments

Comments
 (0)