From 3bedba9640836e469470a146ecdee26b3009d8a7 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 15 Feb 2018 10:23:00 +0100 Subject: [PATCH] add example for swift v3 --- .../configuration_files/primary_storage.rst | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/admin_manual/configuration_files/primary_storage.rst b/admin_manual/configuration_files/primary_storage.rst index 6035135a06e..8d93d40184e 100644 --- a/admin_manual/configuration_files/primary_storage.rst +++ b/admin_manual/configuration_files/primary_storage.rst @@ -46,6 +46,10 @@ Openstack Swift The Swift backend mounts a container on an OpenStack Object Storage server into the virtual filesystem. The class to be used is :code:`\\OC\\Files\\ObjectStore\\Swift` +Both openstack v2 and v3 authentication are supported, + +V2 Authentication: + :: 'objectstore' => array( @@ -67,6 +71,28 @@ The Swift backend mounts a container on an OpenStack Object Storage server into ), ), +V3 Authentication: + +:: + + 'objectstore' => array( + 'class' => 'OC\\Files\\ObjectStore\\Swift', + 'arguments' => array( + 'autocreate' => true, + 'user' => [ + 'name' => 'swift', + 'password' => 'Secr3tPaSSWoRdt7', + 'domain' => [ + 'name' => 'default' + ] + ], + 'serviceName' => 'swift', + 'region' => 'regionOne', + 'url' => "http://example.com/v3", + 'bucket' => 'nextcloud' + ) + ), + Amazon S3 ---------