forked from jillro/commentit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js.dist
51 lines (45 loc) · 1.32 KB
/
config.js.dist
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
51
'use strict';
/**
* This file just export an object with various parameters value depending on
* environnement
*/
var prod = ('production' === process.env.NODE_ENV);
var test = ('test' === process.env.NODE_ENV);
module.exports.secret = 'PleaseChangeThis';
module.exports.nodemailerOptions = {
port: 587,
host: 'smtp.mandrillapp.com',
auth: {
user: '',
pass: ''
}
};
if (prod) {
module.exports.githubId = '';
module.exports.githubSecret = '';
module.exports.githubCommenterId = '';
module.exports.githubCommenterSecret = '';
module.exports.fbId = '';
module.exports.fbSecret = '';
module.exports.host = '';
module.exports.appName = '';
} else {
module.exports.debug = process.env.GITHUB_DEBUG ? true : false;
module.exports.githubId = '';
module.exports.githubSecret = '';
module.exports.githubCommenterId = '';
module.exports.githubCommenterSecret = '';
module.exports.fbId = '';
module.exports.fbSecret = '';
module.exports.host = 'http://localhost:' + (process.env.PORT || 3000);
module.exports.appName = '';
}
module.exports.invitations = false;
module.exports.invitationsHour = 1;
module.exports.twitterKey = '';
module.exports.twitterSecret = '';
if (test) {
module.exports.dbUrl= 'mongodb://localhost/commentitTest';
} else {
module.exports.dbUrl = 'mongodb://localhost/commentit';
}