RED-5324: Added missing storage-region to key to config and to minio-client creation so that storage access works on s3
This commit is contained in:
parent
88b4c5c7ce
commit
ffaa4a668b
@ -49,6 +49,9 @@ class Config(object):
|
|||||||
# Password for s3 storage
|
# Password for s3 storage
|
||||||
self.storage_secret = read_from_environment("STORAGE_SECRET", "password")
|
self.storage_secret = read_from_environment("STORAGE_SECRET", "password")
|
||||||
|
|
||||||
|
# Region for s3 storage
|
||||||
|
self.storage_region = read_from_environment("STORAGE_REGION", "eu-central-1")
|
||||||
|
|
||||||
# Connection string for Azure storage
|
# Connection string for Azure storage
|
||||||
self.storage_azureconnectionstring = read_from_environment(
|
self.storage_azureconnectionstring = read_from_environment(
|
||||||
"STORAGE_AZURECONNECTIONSTRING", "DefaultEndpointsProtocol=..."
|
"STORAGE_AZURECONNECTIONSTRING", "DefaultEndpointsProtocol=..."
|
||||||
|
|||||||
@ -94,7 +94,7 @@ def get_s3_storage(config: Config):
|
|||||||
**_parse_endpoint(config.storage_endpoint),
|
**_parse_endpoint(config.storage_endpoint),
|
||||||
access_key=config.storage_key,
|
access_key=config.storage_key,
|
||||||
secret_key=config.storage_secret,
|
secret_key=config.storage_secret,
|
||||||
# FIXME Is this still needed? Check and if yes, add it to config
|
# This is relevant for running on s3
|
||||||
# region=config.region,
|
region=config.storage_region,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user