BITCOIND_HOST and BITCOIND_PORT env variabled

This commit is contained in:
Matias Alejo Garcia 2014-01-07 10:56:53 -03:00
parent 16c23e0d39
commit 89657e971e
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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',
}
}