-
Notifications
You must be signed in to change notification settings - Fork 2
/
siteConfig.js
50 lines (46 loc) · 1.25 KB
/
siteConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
var fs = require('fs');
var settings = {
'sessionSecret': 'thisisamac',
'port': 3000,
'uri': 'http://localhost:3000', // Without trailing /
// You can add multiple recipiants for notifo notifications
/*'notifoAuth': null [
{
'username': ''
, 'secret': ''
}
]*/
// Enter API keys to enable auth services, remove entire object if they aren't used.
'external': {
'facebook': {
appId: '278190265572756',
appSecret: 'fab81809cae4e9ab2272bdc4b17f064d'
} /*
, 'twitter': {
consumerKey: 'eA54JQ6rtdZE7nqaRa6Oa',
consumerSecret: '6u2makgFdf4F6EauP7osa54L34SouU6eLgaadTD435Rw'
}
, 'github': {
appId: '1444g6a7d26a3f716b47',
appSecret: 'e84f13367f328da4b8c96a4f74gfe7e421b6a206'
}
*/
},
'debug': (process.env.NODE_ENV !== 'production')
};
if (process.env.NODE_ENV == 'production') {
settings.dbName = 'jazz-prod';
} else if (process.env.NODE_ENV == 'development') {
settings.dbName = 'jazz-dev';
} else if (process.env.NODE_ENV == 'test') {
settings.dbName = 'jazz-test';
}
// Hack to figure out if we're on local machine or server
// can't use path.exists b/c has to be synchronous
try {
stats = fs.lstatSync('./confirmIsLocal');
settings.isLocal = true;
} catch(e) {
settings.isLocal = false;
}
module.exports = settings;