diff options
author | Philipp <admin+Github@philipp.info> | 2021-03-27 02:01:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 01:01:00 +0000 |
commit | a15c755399e299914acebe0a5005dd5ddff0db56 (patch) | |
tree | 1aafb415d8de934d50d27a35ad979438e45b9b51 /.config | |
parent | 031ee346eb2e0d91b17bcde14fb867d5dceca775 (diff) |
Add "legacy_auth" option for S3 object stores (#1444)
* Add "legacy_auth" option for S3 object stores
Signed-off-by: Philipp <admin@philipp.info>
* Update .config/s3.config.php
Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to '.config')
-rw-r--r-- | .config/s3.config.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.config/s3.config.php b/.config/s3.config.php index 9a19e96f..aa3f4f59 100644 --- a/.config/s3.config.php +++ b/.config/s3.config.php @@ -2,6 +2,7 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { $use_ssl = getenv('OBJECTSTORE_S3_SSL'); $use_path = getenv('OBJECTSTORE_S3_USEPATH_STYLE'); + $use_legacyauth = getenv('OBJECTSTORE_S3_LEGACYAUTH'); $autocreate = getenv('OBJECTSTORE_S3_AUTOCREATE'); $CONFIG = array( 'objectstore' => array( @@ -17,7 +18,9 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) { 'autocreate' => (strtolower($autocreate) === 'false' || $autocreate == false) ? false : true, 'use_ssl' => (strtolower($use_ssl) === 'false' || $use_ssl == false) ? false : true, // required for some non Amazon S3 implementations - 'use_path_style' => $use_path == true && strtolower($use_path) !== 'false' + 'use_path_style' => $use_path == true && strtolower($use_path) !== 'false', + // required for older protocol versions + 'legacy_auth' => $use_legacyauth == true && strtolower($use_legacyauth) !== 'false' ) ) ); |