From ba37faf71a1dc62b7233c9919c749e14c8bb5ed2 Mon Sep 17 00:00:00 2001 From: kamijin_fanta Date: Sat, 26 Oct 2019 22:17:45 +0900 Subject: [PATCH] github login: default config/config from env vars. Signed-off-by: kamijin_fanta --- lib/config/default.js | 1 + lib/config/environment.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/config/default.js b/lib/config/default.js index 93de2599..9083b4c0 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -104,6 +104,7 @@ module.exports = { consumerSecret: undefined }, github: { + enterpriseURL: undefined, clientID: undefined, clientSecret: undefined }, diff --git a/lib/config/environment.js b/lib/config/environment.js index de573e18..e3a15006 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -66,6 +66,7 @@ module.exports = { consumerSecret: process.env.CMD_TWITTER_CONSUMERSECRET }, github: { + enterpriseURL: process.env.ENTERPRISE_URL, clientID: process.env.CMD_GITHUB_CLIENTID, clientSecret: process.env.CMD_GITHUB_CLIENTSECRET },