diff --git a/app.js b/app.js index fcf905d5..63b880c7 100644 --- a/app.js +++ b/app.js @@ -33,7 +33,7 @@ var data = { urlpath: config.urlPath, debug: config.debug, version: config.version, - GOOGLE_API_KEY: config.google.clientSecret, + GOOGLE_API_KEY: config.google.apiKey, GOOGLE_CLIENT_ID: config.google.clientID, DROPBOX_APP_KEY: config.dropbox.appKey, allowedUploadMimeTypes: config.allowedUploadMimeTypes diff --git a/lib/config/default.js b/lib/config/default.js index 68849d36..db0c0362 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -104,6 +104,7 @@ module.exports = { appKey: undefined }, google: { + apiKey: undefined, clientID: undefined, clientSecret: undefined }, diff --git a/lib/config/environment.js b/lib/config/environment.js index 3dde4786..8e1e5171 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -74,6 +74,7 @@ module.exports = { appKey: process.env.HMD_DROPBOX_APPKEY }, google: { + apiKey: process.env.HMD_GOOGLE_APIKEY, clientID: process.env.HMD_GOOGLE_CLIENTID, clientSecret: process.env.HMD_GOOGLE_CLIENTSECRET },