Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Allow config provisioning via env variables (#5)
Browse files Browse the repository at this point in the history
* Allow config provisioning via env variables
  • Loading branch information
v2nek authored and nmarley committed Apr 27, 2018
1 parent 978782b commit 7500fcd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config.js
@@ -1,7 +1,7 @@
var config = {
basePath: '/bws/api',
disableLogs: false,
port: 3232,
port: process.env.BWS_PORT || 3232,

// Uncomment to make BWS a forking server
// cluster: true,
Expand All @@ -21,20 +21,20 @@ var config = {

storageOpts: {
mongoDb: {
uri: 'mongodb://localhost:27017/bws',
uri: process.env.MONGODB_URI || 'mongodb://localhost:27017/bws',
},
},
lockOpts: {
// To use locker-server, uncomment this:
lockerServer: {
host: 'localhost',
port: 3231,
host: process.env.LOCKER_SERVER || 'localhost',
port: process.env.LOCKER_SERVER_PORT || 3231,
},
},
messageBrokerOpts: {
// To use message broker server, uncomment this:
messageBrokerServer: {
url: 'http://localhost:3380',
url: process.env.MESSAGEBROKER_URI || 'http://localhost:3380',
},
},
blockchainExplorerOpts: {
Expand All @@ -60,7 +60,7 @@ var config = {
defaultUnit: 'btc',
subjectPrefix: '',
pushServerUrl: 'https://fcm.googleapis.com/fcm',
authorizationKey: '',
authorizationKey: process.env.PUSH_AUTHORIZATIONKEY || '',
},
fiatRateServiceOpts: {
defaultProvider: 'BitPay',
Expand Down

0 comments on commit 7500fcd

Please sign in to comment.