bitcore-node-zcash/lib/scaffold/default-config.js

22 lines
556 B
JavaScript
Raw Normal View History

'use strict';
var path = require('path');
/**
* Will return the path and default bitcore-node configuration on environment variables
* or default locations.
*/
function getDefaultConfig() {
return {
path: process.cwd(),
config: {
datadir: process.env.BITCORENODE_DIR || path.resolve(process.env.HOME, '.bitcoin'),
network: process.env.BITCORENODE_NETWORK || 'livenet',
2015-08-31 08:09:24 -07:00
port: Number(process.env.BITCORENODE_PORT) || 3001,
2015-08-31 10:05:46 -07:00
services: ['bitcoind', 'db', 'address', 'web']
}
};
}
module.exports = getDefaultConfig;