From 5dfa556afcd8d993640cc0f75bc6a25d4eb8e534 Mon Sep 17 00:00:00 2001 From: Patrick Hobusch Date: Tue, 16 Jan 2024 07:04:05 +0700 Subject: 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 --- .config/s3.config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.config') 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'] = ''; } -} +} -- cgit v1.2.3