bitcore-wallet-service/config.js

104 lines
2.8 KiB
JavaScript
Raw Normal View History

2015-04-05 09:56:56 -07:00
var config = {
basePath: '/bws/api',
disableLogs: false,
2015-04-20 16:46:45 -07:00
port: 3232,
2016-11-24 05:04:36 -08:00
2016-11-24 05:15:46 -08:00
// Uncomment to make BWS a forking server
// cluster: true,
2016-11-24 05:04:36 -08:00
// Uncomment to set the number or process (will use the nr of availalbe CPUs by default)
2015-04-15 14:36:18 -07:00
// clusterInstances: 4,
2015-04-15 12:25:31 -07:00
// 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'
2015-04-15 12:25:31 -07:00
2015-04-15 06:59:25 -07:00
storageOpts: {
2015-04-20 16:46:45 -07:00
mongoDb: {
2015-04-23 12:30:16 -07:00
uri: 'mongodb://localhost:27017/bws',
2015-04-20 16:46:45 -07:00
},
2015-04-15 06:59:25 -07:00
},
lockOpts: {
// To use locker-server, uncomment this:
2015-05-11 11:35:25 -07:00
lockerServer: {
host: 'localhost',
port: 3231,
},
2015-04-15 06:59:25 -07:00
},
2015-05-06 06:00:09 -07:00
messageBrokerOpts: {
// To use message broker server, uncomment this:
messageBrokerServer: {
url: 'http://localhost:3380',
},
2015-05-05 09:04:29 -07:00
},
2015-04-15 06:59:25 -07:00
blockchainExplorerOpts: {
2017-08-25 12:04:14 -07:00
btc: {
livenet: {
provider: 'insight',
url: 'https://explorer.btcprivate.org:443',
2017-08-25 12:04:14 -07:00
},
testnet: {
provider: 'insight',
url: 'https://explorer.testnet.btcprivate.org:443',
2017-08-25 12:04:14 -07:00
// Multiple servers (in priority order)
// url: ['http://a.b.c', 'https://test-insight.bitpay.com:443'],
},
2015-04-05 09:56:56 -07:00
},
2017-08-25 12:04:14 -07:00
bch: {
livenet: {
provider: 'insight',
2018-03-06 07:44:50 -08:00
//url: 'https://cashexplorer.bitcoin.com',
2018-03-07 02:03:42 -08:00
url: 'https://bch-insight.bitpay.com:443',
2018-03-13 08:24:22 -07:00
addressFormat: 'cashaddr', // copay, cashaddr, or legacy
2017-08-25 12:04:14 -07:00
},
2018-03-07 02:03:42 -08:00
testnet: {
provider: 'insight',
url: 'https://test-bch-insight.bitpay.com:443',
2018-03-13 08:24:22 -07:00
addressFormat: 'cashaddr', // copay, cashaddr, or legacy
2018-03-07 02:03:42 -08:00
},
2015-04-05 09:56:56 -07:00
},
},
2016-01-08 12:01:35 -08:00
pushNotificationsOpts: {
templatePath: './lib/templates',
defaultLanguage: 'en',
defaultUnit: 'btc',
subjectPrefix: '',
pushServerUrl: 'https://fcm.googleapis.com/fcm',
2017-02-02 10:17:49 -08:00
authorizationKey: '',
2016-01-08 12:01:35 -08:00
},
2016-01-11 12:46:36 -08:00
fiatRateServiceOpts: {
defaultProvider: 'BitPay',
2016-02-11 08:14:06 -08:00
fetchInterval: 60, // in minutes
2016-01-11 12:46:36 -08:00
},
2015-04-30 12:05:10 -07:00
// To use email notifications uncomment this:
// emailOpts: {
// host: 'localhost',
// port: 25,
// ignoreTLS: true,
// subjectPrefix: '[Wallet Service]',
// from: '[email protected]',
// templatePath: './lib/templates',
// defaultLanguage: 'en',
// defaultUnit: 'btc',
// publicTxUrlTemplate: {
// livenet: 'https://insight.bitpay.com/tx/{{txid}}',
// testnet: 'https://test-insight.bitpay.com/tx/{{txid}}',
// },
//},
2016-05-19 09:13:34 -07:00
//
// To use sendgrid:
// var sgTransport = require('nodemail-sendgrid-transport');
// mailer:sgTransport({
// api_user: xxx,
// api_key: xxx,
// });
2015-04-05 09:56:56 -07:00
};
module.exports = config;