forked from Mri-monitoring/Mri-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
40 lines (33 loc) · 1016 Bytes
/
config.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
var TESTING = (process.env.TESTING && process.env.TESTING.toLowerCase() === 'true');
var LOCAL_URL = 'mongodb://localhost/' + (TESTING ?
'reportr_test':
'reportr'
);
module.exports = {
'port': process.env.PORT,
'database': {
'url': process.env.MONGOLAB_URI || process.env.MONGOHQ_URL || process.env.MONGODB_URL || LOCAL_URL
},
'auth': {
'username': process.env.AUTH_USERNAME ,
'password': process.env.AUTH_PASSWORD
},
'tasks': {
'redis': process.env.REDISCLOUD_URL || process.env.REDIS_URL
},
'alerts': {
'mail': {
'service': process.env.MAIL_SERVICE,
'auth': {
'user': process.env.MAIL_USERNAME,
'password': process.env.MAIL_PASSWORD
},
'from': process.env.MAIL_FROM
},
'sms': {
'sId': process.env.TWILIO_SID,
'token': process.env.TWILIO_TOKEN,
'from': process.env.TWILIO_FROM
}
}
};