add example for swift v3

This commit is contained in:
Robin Appelman 2018-02-15 10:23:00 +01:00
parent 162743fb3e
commit 3bedba9640

View File

@ -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
---------