-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.js
55 lines (42 loc) · 2.86 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
'use strict';
var 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
// LISK node
config.lisk.host = '127.0.0.1';
config.lisk.port = 36666; // Devnet: 4000, Testnet: 36667, Mainnet: 36666
// 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.password = '';
config.cacheTTL = 20; // Time in seconds to store cache in Redis
config.log.enabled = true; // Collect logs (true - enabled, false - disabled)
config.log.file = './logs/explorer.log'; // Output for logs - can be device file or ordinary path
config.log.level = 'info'; // Log level - (trace, debug, info, warn, error)
// Header price tickers, Currency switcher
config.exchangeRates.enabled = false; // Exchange rates support (true - enabled, false - disabled)
config.exchangeRates.updateInterval = 30000; // Interval in ms for checking exchange rates (default: 30 seconds)
// Configuration for different currency pairs, set false to disable pair
config.exchangeRates.exchanges.LSK.BTC = 'poloniex'; // LSK/BTC pair, supported: poloniex
config.exchangeRates.exchanges.LSK.CNY = 'jubi'; // LSK/CNY pair, supported: jubi, bitbays
config.exchangeRates.exchanges.BTC.USD = 'bitfinex'; // BTC/USD pair, supported: bitfinex, bitstamp
config.exchangeRates.exchanges.BTC.EUR = 'bitstamp'; // BTC/EUR pair, supported: bitstamp, bitmarket
config.exchangeRates.exchanges.BTC.RUB = 'exmo'; // BTC/RUB pair, supported: exmo
config.exchangeRates.exchanges.BTC.PLN = false; // BTC/PLN pair, supported: bitmarket
// Market watcher
config.marketWatcher.enabled = false; // Market watcher support (true - enabled, false - disabled)
config.marketWatcher.exchanges.poloniex = true; // Poloniex exchange support (true - enabled, false - disabled)
config.marketWatcher.exchanges.bittrex = true; // Bittrex exchange support (true - enabled, false - disabled)
config.marketWatcher.candles.updateInterval = 30000; // Interval in ms for updating candlestick data (default: 30 seconds)
config.marketWatcher.candles.poloniex.buildTimeframe = 60*60*24*30; // Build candles based on trades form last 30 days
config.marketWatcher.orders.updateInterval = 15000; // Interval in ms for updating order book data (default: 15 seconds)
// Delegate Proposals
config.proposals.enabled = false; // Delegate proposals support (true - enabled, false - disabled)
config.proposals.updateInterval = 600000; // Interval in ms for updating delegate proposals (default: 10 minutes)
// =======================================================================================
module.exports = config;