Skip to content

Commit

Permalink
Check for rpc user & pass in env
Browse files Browse the repository at this point in the history
  • Loading branch information
SpendBCH authored and SpendBCH committed Oct 25, 2018
1 parent 4d92e8c commit 95732d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const ip = require('ip')
module.exports = {
'rpc': {
'protocol': 'http',
'user': 'root',
'pass': 'bitcoin',
'user': process.env.rpc_user ? process.env.rpc_user : 'root',
'pass': process.env.rpc_pass ? process.env.rpc_pass : 'bitcoin',
'host': process.env.host ? process.env.host : ip.address(),
'port': '8332',
'limit': 15
Expand Down

0 comments on commit 95732d1

Please sign in to comment.