summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2018-01-19 00:25:08 +0800
committerWu Cheng-Han2018-01-19 00:25:08 +0800
commit608008753f3631f473921f0940124f99be13b306 (patch)
treefccb2f549b2b83aca1146b35196baf10eb9ffd66
parent11a5dd0eb42f5c3da81e07bcf33779bd29063f99 (diff)
Fix not passing app key correctly in dropbox config
-rw-r--r--app.js2
-rw-r--r--lib/config/default.js3
-rw-r--r--lib/config/dockerSecret.js3
-rw-r--r--lib/config/environment.js3
4 files changed, 7 insertions, 4 deletions
diff --git a/app.js b/app.js
index c3f1fe8e..37e772bc 100644
--- a/app.js
+++ b/app.js
@@ -34,7 +34,7 @@ var data = {
version: config.version,
GOOGLE_API_KEY: config.google.clientSecret,
GOOGLE_CLIENT_ID: config.google.clientID,
- DROPBOX_APP_KEY: config.dropbox.clientSecret
+ DROPBOX_APP_KEY: config.dropbox.appKey
}
ejs.renderFile(constpath, data, {}, function (err, str) {
diff --git a/lib/config/default.js b/lib/config/default.js
index 8d36db02..40803476 100644
--- a/lib/config/default.js
+++ b/lib/config/default.js
@@ -81,7 +81,8 @@ module.exports = {
},
dropbox: {
clientID: undefined,
- clientSecret: undefined
+ clientSecret: undefined,
+ appKey: undefined
},
google: {
clientID: undefined,
diff --git a/lib/config/dockerSecret.js b/lib/config/dockerSecret.js
index ac54fd19..b9116cd3 100644
--- a/lib/config/dockerSecret.js
+++ b/lib/config/dockerSecret.js
@@ -44,7 +44,8 @@ if (fs.existsSync(basePath)) {
},
dropbox: {
clientID: getSecret('dropbox_clientID'),
- clientSecret: getSecret('dropbox_clientSecret')
+ clientSecret: getSecret('dropbox_clientSecret'),
+ appKey: getSecret('dropbox_appKey')
},
google: {
clientID: getSecret('google_clientID'),
diff --git a/lib/config/environment.js b/lib/config/environment.js
index 27e63591..5a297382 100644
--- a/lib/config/environment.js
+++ b/lib/config/environment.js
@@ -56,7 +56,8 @@ module.exports = {
},
dropbox: {
clientID: process.env.HMD_DROPBOX_CLIENTID,
- clientSecret: process.env.HMD_DROPBOX_CLIENTSECRET
+ clientSecret: process.env.HMD_DROPBOX_CLIENTSECRET,
+ appKey: process.env.HMD_DROPBOX_APPKEY
},
google: {
clientID: process.env.HMD_GOOGLE_CLIENTID,