mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 18:26:42 +07:00
Merge pull request #2412 from owncloud/update_s3_config_examples
update config examples
This commit is contained in:
@@ -35,12 +35,12 @@ constructor with the ``arguments`` key:
|
||||
|
||||
::
|
||||
|
||||
'objectstore' => array(
|
||||
'objectstore' => [
|
||||
'class' => 'Implementation\\Of\\OCP\\Files\\ObjectStore\\IObjectStore',
|
||||
'arguments' => array(
|
||||
'arguments' => [
|
||||
...
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
|
||||
Amazon S3
|
||||
~~~~~~~~~
|
||||
@@ -50,15 +50,27 @@ into the virtual filesystem. The class to be used is ``OCA\ObjectStore\S3``:
|
||||
|
||||
::
|
||||
|
||||
'objectstore' => array(
|
||||
'class' => 'OCA\ObjectStore\S3',
|
||||
'arguments' => array(
|
||||
'key' => 'yourkey',
|
||||
'secret' => 'yoursecret',
|
||||
'bucket' => 'your-oc-bucket',
|
||||
'region' => 'region-of-your-oc-bucket'
|
||||
),
|
||||
),
|
||||
'objectstore' => [
|
||||
'class' => 'OCA\ObjectStore\S3',
|
||||
'arguments' => [
|
||||
// replace with your bucket
|
||||
'bucket' => 'owncloud',
|
||||
'autocreate' => true,
|
||||
// uncomment to enable server side encryption
|
||||
//'serversideencryption' => 'AES256',
|
||||
'options' => [
|
||||
// version and region are required
|
||||
'version' => '2006-03-01',
|
||||
// change to your region
|
||||
'region' => 'eu-central-1',
|
||||
'credentials' => [
|
||||
// replace key and secret with your credentials
|
||||
'key' => 'EJ39ITYZEUH5BGWDRUFY',
|
||||
'secret' => 'M5MrXTRjkyMaxXPe2FRXMTfTfbKEnZCu+7uRTVSj',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
Ceph S3
|
||||
@@ -69,19 +81,31 @@ into the virtual filesystem. The class to be used is ``OCA\ObjectStore\S3``:
|
||||
|
||||
::
|
||||
|
||||
'objectstore' => array(
|
||||
'class' => 'OCA\ObjectStore\S3',
|
||||
'arguments' => array(
|
||||
'key' => 'GEZ550B06Z2ZDB52CT21',
|
||||
'secret' => '6Vdo7ObSMBlI4TMRw0jpRE75K6qS9QNTk6nBboxP',
|
||||
'bucket' => 'devobjectstore',
|
||||
'base_url' => 'http://ceph/',
|
||||
'hostname' => 'ceph',
|
||||
// you must use this region or the amazon lib will overwrite
|
||||
// the path style when resetting the region
|
||||
'region' => 's3-eu-west-1.amazonaws.com'
|
||||
),
|
||||
),
|
||||
'objectstore' => [
|
||||
'class' => 'OCA\ObjectStore\S3',
|
||||
'arguments' => [
|
||||
// replace with your bucket
|
||||
'bucket' => 'owncloud',
|
||||
'autocreate' => true,
|
||||
'options' => [
|
||||
// version and region are required
|
||||
'version' => '2006-03-01',
|
||||
'region' => '',
|
||||
// replace key, secret and bucket with your credentials
|
||||
'credentials' => [
|
||||
// replace key and secret with your credentials
|
||||
'key' => 'EJ39ITYZEUH5BGWDRUFY',
|
||||
'secret' => 'M5MrXTRjkyMaxXPe2FRXMTfTfbKEnZCu+7uRTVSj',
|
||||
],
|
||||
// replace the ceph endpoint with your rgw url
|
||||
'endpoint' => 'http://cephhost:8000/',
|
||||
// Use path style when talking to ceph
|
||||
'command.params' => [
|
||||
'PathStyle' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
OpenStack Swift
|
||||
~~~~~~~~~~~~~~~
|
||||
@@ -91,9 +115,9 @@ into the virtual filesystem. The class to be used is ``\\OC\\Files\\ObjectStore\
|
||||
|
||||
::
|
||||
|
||||
'objectstore' => array(
|
||||
'objectstore' => [
|
||||
'class' => 'OC\\Files\\ObjectStore\\Swift',
|
||||
'arguments' => array(
|
||||
'arguments' => [
|
||||
'username' => 'demo',
|
||||
'password' => 'password',
|
||||
'container' => 'owncloud',
|
||||
@@ -104,7 +128,7 @@ into the virtual filesystem. The class to be used is ``\\OC\\Files\\ObjectStore\
|
||||
'serviceName' => 'swift',
|
||||
// url Type, optional, public, internal or admin
|
||||
'urlType' => 'internal'
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user