Skip to content

Commit

Permalink
s3 support multiple cloud providers: #1761
Browse files Browse the repository at this point in the history
Signed-off-by: blademainer <[email protected]>
  • Loading branch information
blademainer committed May 6, 2022
1 parent 1a38aaa commit 7b1e4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imageRouter/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports.uploadImage = function (imagePath, callback) {
const command = new PutObjectCommand(params)

s3.send(command).then(data => {
// default settings to https scheme
// default scheme settings to https
let s3Endpoint = 'https://s3.amazonaws.com'
if (config.s3.region && config.s3.region !== 'us-east-1') {
s3Endpoint = `s3-${config.s3.region}.amazonaws.com`
Expand Down

0 comments on commit 7b1e4e3

Please sign in to comment.