Merge pull request #190 from maraoz/configurable/port
Configurable port for insight web app
This commit is contained in:
commit
8e5df00b74
@ -69,6 +69,7 @@ BITCOIND_USER # RPC username
|
|||||||
BITCOIND_PASS # RPC password
|
BITCOIND_PASS # RPC password
|
||||||
BITCOIND_DATADIR # bitcoind datadir. 'testnet3' will be appended automatically if testnet is used. NEED to finish with '/'. e.g: `/vol/data/`
|
BITCOIND_DATADIR # bitcoind datadir. 'testnet3' will be appended automatically if testnet is used. NEED to finish with '/'. e.g: `/vol/data/`
|
||||||
INSIGHT_NETWORK [= 'livenet' | 'testnet']
|
INSIGHT_NETWORK [= 'livenet' | 'testnet']
|
||||||
|
INSIGHT_PORT # insight api port
|
||||||
INSIGHT_DB # Path where to store insight's internal DB. (defaults to $HOME/.insight)
|
INSIGHT_DB # Path where to store insight's internal DB. (defaults to $HOME/.insight)
|
||||||
INSIGHT_SAFE_CONFIRMATIONS=6 # Nr. of confirmation needed to start caching transaction information
|
INSIGHT_SAFE_CONFIRMATIONS=6 # Nr. of confirmation needed to start caching transaction information
|
||||||
INSIGHT_IGNORE_CACHE # True to ignore cache of spents in transaction, with more than INSIGHT_SAFE_CONFIRMATIONS confirmations. This is useful for tracking double spents for old transactions.
|
INSIGHT_IGNORE_CACHE # True to ignore cache of spents in transaction, with more than INSIGHT_SAFE_CONFIRMATIONS confirmations. This is useful for tracking double spents for old transactions.
|
||||||
|
|||||||
@ -34,6 +34,7 @@ if (process.env.INSIGHT_NETWORK === 'livenet') {
|
|||||||
b_port = '18332';
|
b_port = '18332';
|
||||||
p2p_port = '18333';
|
p2p_port = '18333';
|
||||||
}
|
}
|
||||||
|
port = parseInt(process.env.INSIGHT_PORT) || port;
|
||||||
|
|
||||||
|
|
||||||
switch (process.env.NODE_ENV) {
|
switch (process.env.NODE_ENV) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user