Set up production variables
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"restApiRoot": "/api",
|
"restApiRoot": "/api",
|
||||||
"host": "0.0.0.0",
|
"host": "127.0.0.1",
|
||||||
"port": 3000,
|
"port": 3000,
|
||||||
"legacyExplorer": false,
|
"legacyExplorer": false,
|
||||||
"remoting": {
|
"remoting": {
|
||||||
|
@ -1,5 +1,20 @@
|
|||||||
var globalConfig = require('../common/config.global');
|
var globalConfig = require('../common/config.global');
|
||||||
|
|
||||||
module.exports = {
|
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
|
||||||
|
}
|
||||||
|
};
|
3
server/config.production.js
Normal file
3
server/config.production.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
module.exports = {
|
||||||
|
host: process.env.HOST || 'localhost'
|
||||||
|
};
|
Reference in New Issue
Block a user