bivcore-wallet-service
Version:
A service for Mutisig HD Bitcoin Value Wallets
155 lines (150 loc) • 4.26 kB
text/typescript
module.exports = {
basePath: '/bws/api',
disableLogs: false,
port: 3232,
// Uncomment to make BWS a forking server
// cluster: true,
// Uncomment to set the number or process (will use the nr of availalbe CPUs by default)
// clusterInstances: 4,
// https: true,
// privateKeyFile: 'private.pem',
// certificateFile: 'cert.pem',
////// The following is only for certs which are not
////// trusted by nodejs 'https' by default
////// CAs like Verisign do not require this
// CAinter1: '', // ex. 'COMODORSADomainValidationSecureServerCA.crt'
// CAinter2: '', // ex. 'COMODORSAAddTrustCA.crt'
// CAroot: '', // ex. 'AddTrustExternalCARoot.crt'
storageOpts: {
mongoDb: {
uri: 'mongodb://localhost:27017/bws',
dbname: 'bws'
}
},
messageBrokerOpts: {
// To use message broker server, uncomment this:
messageBrokerServer: {
url: 'http://localhost:3380'
}
},
blockchainExplorerOpts: {
btc: {
livenet: {
url: 'https://api.bitcore.io'
},
testnet: {
url: 'https://api.bitcore.io',
regtestEnabled: false
}
},
bch: {
livenet: {
url: 'https://api.bitcore.io'
},
testnet: {
url: 'https://api.bitcore.io'
}
},
biv: {
livenet: {
url: 'https://api.bitcore.io'
},
testnet: {
url: 'https://api.bitcore.io'
}
},
eth: {
livenet: {
url: 'https://api-eth.bitcore.io'
},
testnet: {
url: 'https://api-eth.bitcore.io'
}
},
xrp: {
livenet: {
url: 'https://api-xrp.bitcore.io'
},
testnet: {
url: 'https://api-xrp.bitcore.io'
}
},
socketApiKey: 'socketApiKey'
},
pushNotificationsOpts: {
templatePath: 'templates',
defaultLanguage: 'en',
defaultUnit: 'btc',
subjectPrefix: '',
pushServerUrl: 'https://fcm.googleapis.com/fcm',
authorizationKey: 'You_have_to_put_something_here'
},
fiatRateServiceOpts: {
defaultProvider: 'BitPay',
fetchInterval: 60 // in minutes
},
maintenanceOpts: {
maintenanceMode: false
},
staticRoot: '/tmp/static'
// simplex: {
// sandbox: {
// apiKey: 'simplex_sandbox_api_key_here',
// api: 'https://sandbox.test-simplexcc.com',
// appProviderId: 'simplex_provider_id_here'
// },
// production: {
// apiKey: 'simplex_production_api_key_here',
// api: 'https://backend-wallet-api.simplexcc.com',
// appProviderId: 'simplex_provider_id_here'
// }
// },
// wyre: {
// sandbox: {
// apiKey: 'wyre_sandbox_api_key_here',
// secretApiKey: 'wyre_sandbox_secret_api_key_here',
// api: 'https://api.testwyre.com',
// widgetUrl: 'https://pay.testwyre.com',
// appProviderAccountId: 'wyre_provider_sandbox_account_id_here'
// },
// production: {
// apiKey: 'wyre_production_api_key_here',
// secretApiKey: 'wyre_production_secret_api_key_here',
// api: 'https://api.sendwyre.com',
// widgetUrl: 'https://pay.sendwyre.com/',
// appProviderAccountId: 'wyre_provider_production_account_id_here'
// }
// },
// To use email notifications uncomment this:
// emailOpts: {
// host: 'localhost',
// port: 25,
// ignoreTLS: true,
// subjectPrefix: '[Wallet Service]',
// from: 'wallet-service@bitcore.io',
// templatePath: 'templates',
// defaultLanguage: 'en',
// defaultUnit: 'btc',
// publicTxUrlTemplate: {
// btc: {
// livenet: 'https://insight.bitcore.io/#/BTC/mainnet/tx/{{txid}}',
// testnet: 'https://insight.bitcore.io/#/BTC/testnet/tx/{{txid}}',
// },
// bch: {
// livenet: 'https://insight.bitcore.io/#/BCH/mainnet/tx/{{txid}}',
// testnet: 'https://insight.bitcore.io/#/BCH/testnet/tx/{{txid}}',
// }
// biv: {
// livenet: 'https://insight.bitcore.io/#/BIV/mainnet/tx/{{txid}}',
// testnet: 'https://insight.bitcore.io/#/BIV/testnet/tx/{{txid}}',
// }
// },
// },
// To use sendgrid:
// const sgMail = require('@sendgrid/mail');
// sgMail.setApiKey(process.env.SENDGRID_API_KEY);
//
//
// //then add:
// mailer: sgMail,
};