Adding a self host clause around minio aws config.
This commit is contained in:
parent
9c0a4ab4fb
commit
ff993db223
|
@ -49,10 +49,12 @@ const PUBLIC_BUCKETS = [ObjectStoreBuckets.APPS]
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
exports.ObjectStore = bucket => {
|
exports.ObjectStore = bucket => {
|
||||||
AWS.config.update({
|
if (env.SELF_HOSTED) {
|
||||||
accessKeyId: env.MINIO_ACCESS_KEY,
|
AWS.config.update({
|
||||||
secretAccessKey: env.MINIO_SECRET_KEY,
|
accessKeyId: env.MINIO_ACCESS_KEY,
|
||||||
})
|
secretAccessKey: env.MINIO_SECRET_KEY,
|
||||||
|
})
|
||||||
|
}
|
||||||
const config = {
|
const config = {
|
||||||
s3ForcePathStyle: true,
|
s3ForcePathStyle: true,
|
||||||
signatureVersion: "v4",
|
signatureVersion: "v4",
|
||||||
|
|
Loading…
Reference in New Issue