From 89657e971e535418387e3532979d33d1e22a687d Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 7 Jan 2014 10:56:53 -0300 Subject: [PATCH] BITCOIND_HOST and BITCOIND_PORT env variabled --- README.md | 5 ++++- config/env/development.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d63e259..eb30b46 100644 --- a/README.md +++ b/README.md @@ -78,11 +78,14 @@ All configuration is specified in the [config](config/) folder, particularly the ### bitcoind - There is a bitcoind configuration sample at: +There is a bitcoind configuration sample at: ``` etc/mystery/bitcoin.conf ``` +If you want to use a external bitcoind server set BITCOIND_HOST / BITCOIND_PORT enviroment variables. Make sure that bitcoind is configured to accept incomming connections using 'rpcallowip' decribed in https://en.bitcoin.it/wiki/Running_Bitcoin. + + ### Environmental Settings There are three environments provided by default, __development__, __test__, and __production__. Each of these environments has the following configuration options: diff --git a/config/env/development.js b/config/env/development.js index 969bd38..6836a43 100755 --- a/config/env/development.js +++ b/config/env/development.js @@ -10,5 +10,6 @@ module.exports = { pass: 'real_mystery', protocol: 'http', host: process.env.BITCOIND_HOST || '127.0.0.1', + port: process.env.BITCOIND_PORT || '8332', } }