From e145a0bcbb74f3ec1775339887ec85ee876318ab Mon Sep 17 00:00:00 2001 From: Charles Provent Date: Thu, 27 Feb 2020 13:36:02 +0100 Subject: [PATCH] Add example Swift v3 scope Add an example of Swift V3 with a configuration scope following this commit : https://github.com/nextcloud/server/pull/9280 --- .../configuration_files/primary_storage.rst | 35 +++++++++++++------ 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/admin_manual/configuration_files/primary_storage.rst b/admin_manual/configuration_files/primary_storage.rst index 0d6be0ae8..87edddc40 100644 --- a/admin_manual/configuration_files/primary_storage.rst +++ b/admin_manual/configuration_files/primary_storage.rst @@ -86,22 +86,37 @@ V3 Authentication: :: - 'objectstore' => array( + 'objectstore' => + array ( 'class' => 'OC\\Files\\ObjectStore\\Swift', - 'arguments' => array( + 'arguments' => + array ( 'autocreate' => true, - 'user' => [ + 'user' => + array ( 'name' => 'swift', 'password' => 'Secr3tPaSSWoRdt7', - 'domain' => [ - 'name' => 'default' - ] - ], + 'domain' => + array ( + 'name' => 'Default', + ), + ), + 'scope' => + array ( + 'project' => + array ( + 'name' => 'OS_PROJECT_NAME', + 'domain' => + array ( + 'name' => 'Default', + ), + ), + ), 'serviceName' => 'swift', 'region' => 'regionOne', - 'url' => "http://example.com/v3", - 'bucket' => 'nextcloud' - ) + 'url' => 'http://example.com/v3', + 'bucket' => 'nextcloud', + ), ), ~~~~~~~~~~~~~~~~~~~~~~~~~~~