bitcore-wallet-service/config.js

65 lines
1.7 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,
2015-04-15 11:56:08 -07:00
// Uncomment to make BWS a forking server
2015-04-15 14:36:18 -07:00
// cluster: true,
2015-04-15 11:56:08 -07:00
// Uncomment to use the nr of availalbe CPUs
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: {
2015-04-05 09:56:56 -07:00
livenet: {
2015-04-15 09:23:30 -07:00
provider: 'insight',
2015-04-05 09:56:56 -07:00
url: 'https://insight.bitpay.com:443',
},
testnet: {
2015-04-15 09:23:30 -07:00
provider: 'insight',
2015-04-05 09:56:56 -07:00
url: 'https://test-insight.bitpay.com:443',
},
},
2015-04-30 12:05:10 -07:00
// To use email notifications uncomment this:
2015-05-11 07:46:28 -07:00
emailOpts: {
2015-05-08 13:31:33 -07:00
host: 'localhost',
port: 25,
ignoreTLS: true,
subjectPrefix: '[Wallet Service]',
from: '[email protected]',
2015-06-26 11:47:27 -07:00
templatePath: './lib/templates',
defaultLanguage: 'en',
2015-06-26 12:10:18 -07:00
defaultUnit: 'btc',
2015-07-13 08:52:28 -07:00
publicTxUrlTemplate: {
livenet: 'https://insight.bitpay.com/tx/{{txid}}',
testnet: 'https://test-insight.bitpay.com/tx/{{txid}}',
},
2015-05-08 13:31:33 -07:00
},
2015-04-05 09:56:56 -07:00
};
module.exports = config;