mirror of
https://github.com/laosb/ghos3.git
synced 2025-04-30 15:41:08 +00:00
subdomain used as per S3 latest endpoint guidelines
This commit is contained in:
parent
74be77ffdf
commit
1bc60e8f40
1 changed files with 2 additions and 2 deletions
|
@ -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`
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue