From ff993db223d1ee90696b2dfe3e067dec9afd0698 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 24 Mar 2021 12:55:29 +0000 Subject: [PATCH] Adding a self host clause around minio aws config. --- packages/server/src/utilities/fileSystem/utilities.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/server/src/utilities/fileSystem/utilities.js b/packages/server/src/utilities/fileSystem/utilities.js index 2743102f0a..cfdbc3b811 100644 --- a/packages/server/src/utilities/fileSystem/utilities.js +++ b/packages/server/src/utilities/fileSystem/utilities.js @@ -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",