mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Merge pull request #1505 from matejc/master
fix(s3): replace dash with dot for s3 endpoint
This commit is contained in:
commit
c3c8a7ad8f
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ exports.uploadImage = function (imagePath, callback) {
|
|||
if (config.s3.endpoint) {
|
||||
s3Endpoint = config.s3.endpoint
|
||||
} else if (config.s3.region && config.s3.region !== 'us-east-1') {
|
||||
s3Endpoint = `s3-${config.s3.region}.amazonaws.com`
|
||||
s3Endpoint = `s3.${config.s3.region}.amazonaws.com`
|
||||
}
|
||||
callback(null, `https://${s3Endpoint}/${config.s3bucket}/${params.Key}`)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue