summaryrefslogtreecommitdiff
path: root/lib/config
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-01-23 11:43:24 +0100
committerGitHub2018-01-23 11:43:24 +0100
commiteec2318bda29f6633f9c9b4198e507959fa12d46 (patch)
treef6a8f315a1852850c0e6196ccf1b8dd9e19e55cb /lib/config
parent7de6e3211f797ed9e9e5ca3d52181f77abf030d0 (diff)
parent2c780f53df73a0ba1f13109213d95df7f32cbd8a (diff)
Merge pull request #506 from erasys/minio
Add support for minio
Diffstat (limited to 'lib/config')
-rw-r--r--lib/config/default.js7
-rw-r--r--lib/config/environment.js7
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/config/default.js b/lib/config/default.js
index ec7c7451..28f4490c 100644
--- a/lib/config/default.js
+++ b/lib/config/default.js
@@ -62,6 +62,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 24a85d65..932363da 100644
--- a/lib/config/environment.js
+++ b/lib/config/environment.js
@@ -34,6 +34,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,