forked from Reportr/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
88 lines (79 loc) · 1.79 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = {
/* Debug mode */
"debug": true,
/* Server configuration */
"web": {
/* (string) Hostname for the application */
"host": process.env.HOST || "www.reportr.io",
/* (boolean) Secure https mode */
"secure": false,
/* (int) TCP server port */
"port": process.env.PORT || 5000,
/* (string) Session secret */
"sessionSecret": process.env.SESSION_SECRET || "sessionSecret",
/* Use websocket */
"websockets": true
},
/* Database configuration */
"database": {
/* (string) Url for mongodb */
"url": process.env.MONGOLAB_URI || process.env.MONGOHQ_URL || 'mongodb://localhost/reportr'
},
/* Client configuration */
"client": {
"map": {
/* Key for Google Maps API v3 */
"apiKey": "AIzaSyAAeM47baWKdmKoqWeIuK5bQCxtur6mWm0"
}
},
/* Tasks */
"tasks": {
/* (int) Interval between tasks started (in ms) */
'interval': 5*60*1000
},
/* Trackers */
"trackers": [
{
'module': './trackers/chrome',
'config': {}
},
{
'module': './trackers/facebook',
'config': {
'interval': 6*60*60,
'clientId': process.env.FACEBOOK_CLIENTID,
'clientSecret': process.env.FACEBOOK_CLIENTSECRET
}
},
{
'module': './trackers/twitter',
'config': {
'interval': 6*60*60,
'clientId': process.env.TWITTER_CLIENTID,
'clientSecret': process.env.TWITTER_CLIENTSECRET
}
},
{
'module': './trackers/foursquare',
'config': {
'interval': 6*60*60,
'clientId': process.env.FOURSQUARE_CLIENTID,
'clientSecret': process.env.FOURSQUARE_CLIENTSECRET
}
},
{
'module': './trackers/github',
'config': {
'interval': 6*60*60,
'clientId': process.env.GITHUB_CLIENTID,
'clientSecret': process.env.GITHUB_CLIENTSECRET
}
},
{
'module': './trackers/ping',
'config': {
'interval': 10*60
}
}
]
};