Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ def __init__(self, config):

# construct base url for bucket
scheme = "https://" if config.as_bool("minio.secure") else "http://"
self.base_url = scheme + config.minio.endpoint + "/" + self.bucket

if config.minio.region and "amazonaws" in config.minio.endpoint.lower():
self.base_url = (
f"{scheme}{self.bucket}.s3.{config.minio.region}.amazonaws.com"
)
else:
self.base_url = scheme + config.minio.endpoint + "/" + self.bucket
except S3Error as e:
raise DriverError("MinIO driver init error: " + str(e))

Expand Down