Skip to content

Commit

Permalink
Merge pull request #15 from owstack/configurable
Browse files Browse the repository at this point in the history
make configurable
  • Loading branch information
Andy Phillipson committed Nov 6, 2017
2 parents 1213d69 + 1a267f1 commit 035e76a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bch-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ var Constants = require('../lib/common/constants');
*/
var Service = function(options) {
EventEmitter.call(this);

this.config = options.config || baseConfig;
this.node = options.node;
this.https = options.https || this.node.https;
this.httpsOptions = options.httpsOptions || this.node.httpsOptions;
this.bchwsPort = options.bchwsPort || baseConfig.port;
this.bchwsPort = options.bchwsPort || this.config.port;
this.messageBrokerPort = options.messageBrokerPort || 3381;
if (baseConfig.lockOpts) {
this.lockerPort = baseConfig.lockOpts.lockerServer.port;
if (this.config.lockOpts) {
this.lockerPort = this.config.lockOpts.lockerServer.port;
}
this.lockerPort = options.lockerPort || this.lockerPort;
};
Expand Down Expand Up @@ -76,7 +76,7 @@ Service.prototype._readHttpsOptions = function() {
* @returns {Object}
*/
Service.prototype._getConfiguration = function() {
return baseConfig;
return this.config;
};

/**
Expand Down

0 comments on commit 035e76a

Please sign in to comment.