mirror of
https://github.com/nextcloud/docker.git
synced 2025-05-03 07:30:53 +02:00
Allow setting AWS S3 storage class (#2138)
The AWS S3 storage class can now be set using the environment variable `OBJECTSTORE_S3_STORAGE_CLASS`. The order of the AWS S3 environment variables in the `README.md` has also been adjusted to be more "logical". Signed-off-by: Patrick Hobusch <patrick@hobusch.net>
This commit is contained in:
parent
f14ad96e2d
commit
5dfa556afc
2 changed files with 8 additions and 6 deletions
|
@ -12,6 +12,7 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) {
|
|||
'region' => getenv('OBJECTSTORE_S3_REGION') ?: '',
|
||||
'hostname' => getenv('OBJECTSTORE_S3_HOST') ?: '',
|
||||
'port' => getenv('OBJECTSTORE_S3_PORT') ?: '',
|
||||
'storageClass' => getenv('OBJECTSTORE_S3_STORAGE_CLASS') ?: '',
|
||||
'objectPrefix' => getenv("OBJECTSTORE_S3_OBJECT_PREFIX") ? getenv("OBJECTSTORE_S3_OBJECT_PREFIX") : "urn:oid:",
|
||||
'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true,
|
||||
'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true,
|
||||
|
@ -38,4 +39,4 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) {
|
|||
} else {
|
||||
$CONFIG['objectstore']['arguments']['secret'] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue