We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0388035 + 48a68e0 commit 4e596d7Copy full SHA for 4e596d7
lib/web/imageRouter/minio.js
@@ -40,7 +40,9 @@ exports.uploadImage = function (imagePath, callback) {
40
callback(new Error(err), null)
41
return
42
}
43
- callback(null, `${protocol}://${config.minio.endPoint}:${config.minio.port}/${config.s3bucket}/${key}`)
+ let hidePort = [80, 443].includes(config.minio.port)
44
+ let urlPort = hidePort ? '' : `:${config.minio.port}`
45
+ callback(null, `${protocol}://${config.minio.endPoint}${urlPort}/${config.s3bucket}/${key}`)
46
})
47
48
0 commit comments