subdomain used as per S3 latest endpoint guidelines

This commit is contained in:
Aditya Patadia 2023-10-28 13:48:58 +05:30 committed by Shibo Lyu
parent 74be77ffdf
commit 1bc60e8f40

View file

@ -72,11 +72,11 @@ class S3Storage extends StorageBase {
if(this.forcePathStyle) {
defaultHost = `https://s3${
this.region === 'us-east-1' ? '' : `-${this.region}`
this.region === 'us-east-1' ? '' : `.${this.region}`
}.amazonaws.com/${this.bucket}`
} else {
defaultHost = `https://${this.bucket}.s3${
this.region === 'us-east-1' ? '' : `-${this.region}`
this.region === 'us-east-1' ? '' : `.${this.region}`
}.amazonaws.com`
}