node: add rpc user and password env variables.
This commit is contained in:
parent
bea7bc4677
commit
b6dbc5f709
@ -190,6 +190,12 @@ Node.prototype._parseOptions = function _parseOptions(options) {
|
|||||||
if (process.env.BCOIN_SEED != null)
|
if (process.env.BCOIN_SEED != null)
|
||||||
options.preferredSeed = process.env.BCOIN_SEED;
|
options.preferredSeed = process.env.BCOIN_SEED;
|
||||||
|
|
||||||
|
if (process.env.BCOIN_RPCUSER != null)
|
||||||
|
options.rpcUser = process.env.BCOIN_RPCUSER;
|
||||||
|
|
||||||
|
if (process.env.BCOIN_RPCPASSWORD != null)
|
||||||
|
options.rpcPassword = process.env.BCOIN_RPCPASSWORD;
|
||||||
|
|
||||||
if (!options.prefix)
|
if (!options.prefix)
|
||||||
options.prefix = utils.HOME + '/.bcoin';
|
options.prefix = utils.HOME + '/.bcoin';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user