1
0
Fork 0
mirror of synced 2024-06-27 18:40:42 +12:00

Adding a self host clause around minio aws config.

This commit is contained in:
mike12345567 2021-03-24 12:55:29 +00:00
parent e61a365d24
commit e9ed014bac

View file

@ -49,10 +49,12 @@ const PUBLIC_BUCKETS = [ObjectStoreBuckets.APPS]
* @constructor
*/
exports.ObjectStore = bucket => {
AWS.config.update({
accessKeyId: env.MINIO_ACCESS_KEY,
secretAccessKey: env.MINIO_SECRET_KEY,
})
if (env.SELF_HOSTED) {
AWS.config.update({
accessKeyId: env.MINIO_ACCESS_KEY,
secretAccessKey: env.MINIO_SECRET_KEY,
})
}
const config = {
s3ForcePathStyle: true,
signatureVersion: "v4",