diff options
author | Patrick Hobusch <pathob@users.noreply.github.com> | 2024-01-16 07:04:05 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 00:04:05 +0000 |
commit | 5dfa556afcd8d993640cc0f75bc6a25d4eb8e534 (patch) | |
tree | c570f19078f1dbc6571dd1fe04f6ebf1f9280472 /.config | |
parent | f14ad96e2d5d970d20a9ccdc793d066e5f47bcfb (diff) |
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>
Diffstat (limited to '.config')
-rw-r--r-- | .config/s3.config.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/s3.config.php b/.config/s3.config.php index 6d0ede91..38040ded 100644 --- a/.config/s3.config.php +++ b/.config/s3.config.php @@ -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'] = ''; } -} +} |