Skip to content
Snippets Groups Projects
Commit c3e56bed authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 's3-addressing-style' into 'master'

Use newer S3 hostname style

Closes #772

See merge request !1381
parents dc49d449 ff0d8fc1
No related branches found
No related tags found
1 merge request!1381Use newer S3 hostname style
......@@ -21,6 +21,9 @@ session = boto3.session.Session(
config = Config(
region_name=settings.AWS_REGION,
signature_version='s3v4',
s3={
'addressing_style': 'auto' if settings.AWS_ENDPOINT else 'virtual',
}
)
s3 = session.resource(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment