From a334b9870c656be9b8ce4877b8ca32b6a2a7b67c Mon Sep 17 00:00:00 2001 From: terakilobyte Date: Mon, 15 Jun 2015 18:24:26 -0400 Subject: [PATCH] Set up production variables --- server/config.json | 2 +- server/config.local.js | 19 +++++++++++++++++-- server/config.production.js | 3 +++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 server/config.production.js diff --git a/server/config.json b/server/config.json index 953b2f37c5..fb2f957d78 100644 --- a/server/config.json +++ b/server/config.json @@ -1,6 +1,6 @@ { "restApiRoot": "/api", - "host": "0.0.0.0", + "host": "127.0.0.1", "port": 3000, "legacyExplorer": false, "remoting": { diff --git a/server/config.local.js b/server/config.local.js index e5058ced89..c781159696 100644 --- a/server/config.local.js +++ b/server/config.local.js @@ -1,5 +1,20 @@ var globalConfig = require('../common/config.global'); module.exports = { - restApiRoot: globalConfig.restApi -}; + restApiRoot: globalConfig.restApi, + sessionSecret: process.env.SESSION_SECRET, + + trello: { + key: process.env.TRELLO_KEY, + secret: process.env.TRELLO_SECRET + }, + + blogger: { + key: process.env.BLOGGER_KEY + }, + + github: { + clientID: process.env.GITHUB_ID, + clientSecret: process.env.GITHUB_SECRET + } +}; \ No newline at end of file diff --git a/server/config.production.js b/server/config.production.js new file mode 100644 index 0000000000..248be09fd2 --- /dev/null +++ b/server/config.production.js @@ -0,0 +1,3 @@ +module.exports = { + host: process.env.HOST || 'localhost' +}; \ No newline at end of file