-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathAppConfig.js
More file actions
67 lines (63 loc) · 1.59 KB
/
AppConfig.js
File metadata and controls
67 lines (63 loc) · 1.59 KB
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
var path = require('path');
var rootPath = path.normalize(__dirname + '/..');
var env = process.env.NODE_ENV || 'development';
var config = {
development: {
exchanges: {
coincap: {
name: 'CoinCap',
orgUrl: 'http://coincap.io/',
url: 'https://api.coinmarketcap.com/v1/ticker/dash'
},
worldcoin: {
name: 'WorldCoinIndex',
orgUrl: 'https://www.worldcoinindex.com',
url: 'https://www.worldcoinindex.com/apiservice/json',
apiKey: 'ePSl8tl8dsFhLyReZ6aIwCQNw'
}
},
budgets: {
dashwhale: {
name: 'DashWhale',
url: 'https://www.dashwhale.org/api/v1/budget'
}
},
masternodes: {
node40: {
name: 'Node40',
apiKey: '8e4ec80a6394db3411b8af9afa3b5156d36fd18102f1278fef59a3e40d9bf6af',
apiKeyHeader: 'X-Api-Key',
historyUrl: 'https://node40.com/monitor/api/masterNode/history',
statsUrl: 'https://node40.com/monitor/api/masterNode/stats'
}
},
chain: {
insight: {
name: 'Insight',
url: 'https://insight.dash.siampm.com/api/blocks',
maxBlocks: 10
}
},
root: rootPath,
app: {
name: 'dash.org-api'
},
port: process.env.PORT || 9090,
logLevel: 'DEBUG' // EMERGENCY|ALERT|CRITICAL|ERROR|WARNING|NOTICE|INFO|DEBUG
},
test: {
root: rootPath,
app: {
name: 'dash.org-api'
},
port: process.env.PORT || 9090
},
production: {
root: rootPath,
app: {
name: 'dash.org-api'
},
port: process.env.PORT || 9090
}
};
module.exports = config[env];