diff options
author | Marc Deop | 2017-08-30 18:58:34 +0200 |
---|---|---|
committer | Marc Deop | 2017-08-30 18:58:34 +0200 |
commit | 2c780f53df73a0ba1f13109213d95df7f32cbd8a (patch) | |
tree | 165486e711400e2285305e6343faa6a306e52c61 /lib/config | |
parent | d1d6d5810b12645ddb02275ce0c2498b2189a8a0 (diff) |
Add support for minio
Diffstat (limited to '')
-rw-r--r-- | lib/config/default.js | 7 | ||||
-rw-r--r-- | lib/config/environment.js | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index a14a4294..a9689974 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -48,6 +48,13 @@ module.exports = { secretAccessKey: undefined, region: undefined }, + minio: { + accessKey: undefined, + secretKey: undefined, + endPoint: undefined, + secure: true, + port: 9000 + }, s3bucket: undefined, // authentication facebook: { diff --git a/lib/config/environment.js b/lib/config/environment.js index 75381ffc..49e44cad 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -24,6 +24,13 @@ module.exports = { secretAccessKey: process.env.HMD_S3_SECRET_ACCESS_KEY, region: process.env.HMD_S3_REGION }, + minio: { + accessKey: process.env.HMD_MINIO_ACCESS_KEY, + secretKey: process.env.HMD_MINIO_SECRET_KEY, + endPoint: process.env.HMD_MINIO_ENDPOINT, + secure: toBooleanConfig(process.env.HMD_MINIO_SECURE), + port: parseInt(process.env.HMD_MINIO_PORT) + }, s3bucket: process.env.HMD_S3_BUCKET, facebook: { clientID: process.env.HMD_FACEBOOK_CLIENTID, |