mirror of
https://github.com/laosb/ghos3.git
synced 2025-05-01 08:01:08 +00:00
subdomain used as per S3 latest endpoint guidelines
This commit is contained in:
parent
a5cb4d3b8f
commit
ea68ac43b5
1 changed files with 2 additions and 2 deletions
|
@ -72,11 +72,11 @@ class S3Storage extends StorageBase {
|
||||||
|
|
||||||
if(this.forcePathStyle) {
|
if(this.forcePathStyle) {
|
||||||
defaultHost = `https://s3${
|
defaultHost = `https://s3${
|
||||||
this.region === 'us-east-1' ? '' : `-${this.region}`
|
this.region === 'us-east-1' ? '' : `.${this.region}`
|
||||||
}.amazonaws.com/${this.bucket}`
|
}.amazonaws.com/${this.bucket}`
|
||||||
} else {
|
} else {
|
||||||
defaultHost = `https://${this.bucket}.s3${
|
defaultHost = `https://${this.bucket}.s3${
|
||||||
this.region === 'us-east-1' ? '' : `-${this.region}`
|
this.region === 'us-east-1' ? '' : `.${this.region}`
|
||||||
}.amazonaws.com`
|
}.amazonaws.com`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue