forked from tjappo/shift-explorer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
87 lines (74 loc) · 2.71 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
const config = require('./config.global');
/**
* CONFIGURATION
*/
config.host = '0.0.0.0'; // Interface to listen on, 0.0.0.0 to listen on all available
config.port = 6040; // Port to listen on
/**
* SHIFT node
*/
config.shift.host = 'corenode1.shiftnrg.org';
config.shift.port = 9305;
/**
* FreeGeoIP server
*/
config.freegeoip.host = '127.0.0.1';
config.freegeoip.port = 8080;
/**
* Redis server
*/
config.redis.host = '127.0.0.1';
config.redis.port = 6379;
config.redis.db = 0;
config.redis.password = '';
// Time in seconds to store cache in Redis
config.cacheTTL = 20;
// Collect logs (true - enabled, false - disabled)
config.log.enabled = true;
// Output for logs - can be device file or ordinary path
config.log.file = './logs/explorer.log';
// Log level - (trace, debug, info, warn, error)
config.log.level = 'info';
/**
* Header price tickers, Currency switcher
*/
// Exchange rates support (true - enabled, false - disabled)
config.exchangeRates.enabled = true;
// Interval in ms for checking exchange rates (default: 30 seconds)
config.exchangeRates.updateInterval = 30000;
// Configuration for different currency pairs, set false to disable pair
// LSK/BTC pair, supported: poloniex, bittrex, livecoin, bilaxy
config.exchangeRates.exchanges.SHIFT.BTC = 'bilaxy';
// LSK/CNY pair, supported: jubi, bitbays
// config.exchangeRates.exchanges.LSK.CNY = 'jubi';
// BTC/USD pair, supported: bitfinex, bitstamp, btce
config.exchangeRates.exchanges.BTC.USD = 'bitfinex';
// BTC/EUR pair, supported: bitstamp, bitmarket
config.exchangeRates.exchanges.BTC.EUR = 'bitstamp';
// BTC/RUB pair, supported: btce, exmo
config.exchangeRates.exchanges.BTC.RUB = false; // 'exmo'
// BTC/PLN pair, supported: bitmarket
config.exchangeRates.exchanges.BTC.PLN = false;
/**
* Market watcher
*/
// Market watcher support (true - enabled, false - disabled)
config.marketWatcher.enabled = false;
// Poloniex exchange support (true - enabled, false - disabled)
// config.marketWatcher.exchanges.poloniex = false;
// Bittrex exchange support (true - enabled, false - disabled);
config.marketWatcher.exchanges.bittrex = true;
// Interval in ms for updating candlestick data (default: 30 seconds)
config.marketWatcher.candles.updateInterval = 30000;
// Build candles based on trades form last 30 days
// config.marketWatcher.candles.poloniex.buildTimeframe = 60 * 60 * 24 * 30;
// Interval in ms for updating order book data (default: 15 seconds)
config.marketWatcher.orders.updateInterval = 15000;
/**
* Delegate Proposals
*/
// Delegate proposals support (true - enabled, false - disabled)
config.proposals.enabled = true;
// Interval in ms for updating delegate proposals (default: 10 minutes)
config.proposals.updateInterval = 600000;
module.exports = config;