From a3835e0e2bb2d5a4faef55aecec9283b8bc7d178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Ar=C3=A1oz?= Date: Tue, 16 Sep 2014 01:21:04 -0300 Subject: [PATCH 1/2] allow port config via env variable --- config/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/config/config.js b/config/config.js index dc95a241..e5ecd6ff 100644 --- a/config/config.js +++ b/config/config.js @@ -32,6 +32,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) { From 481f0a9886b07f040d881bcd30e9c46068c7d95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Ar=C3=A1oz?= Date: Tue, 16 Sep 2014 01:21:54 -0300 Subject: [PATCH 2/2] update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 51b26400..65f2b74e 100644 --- a/README.md +++ b/README.md @@ -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.