Merge pull request #190 from maraoz/configurable/port

Configurable port for insight web app
This commit is contained in:
Matias Alejo Garcia 2014-09-16 07:27:14 -03:00
commit 8e5df00b74
2 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ BITCOIND_USER # RPC username
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/`
INSIGHT_NETWORK [= 'livenet' | 'testnet']
INSIGHT_PORT # insight api port
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_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.

View File

@ -34,6 +34,7 @@ if (process.env.INSIGHT_NETWORK === 'livenet') {
b_port = '18332';
p2p_port = '18333';
}
port = parseInt(process.env.INSIGHT_PORT) || port;
switch (process.env.NODE_ENV) {