forked from bitpay/bitcore-wallet-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
115 lines (110 loc) · 3.13 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
var config = {
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',
},
},
lockOpts: {
// To use locker-server, uncomment this:
lockerServer: {
host: 'localhost',
port: 3231,
},
},
messageBrokerOpts: {
// To use message broker server, uncomment this:
messageBrokerServer: {
url: 'http://localhost:3380',
},
},
blockchainExplorerOpts: {
btc: {
livenet: {
provider: 'v8',
// provider: 'insight',
// url: 'https://insight.bitpay.com:443',
url: 'https://api.bitcore.io',
},
testnet: {
//provider: 'insight',
//url: 'https://test-insight.bitpay.com:443',
// Multiple servers (in priority order)
// url: ['http://a.b.c', 'https://test-insight.bitpay.com:443'],
provider: 'v8',
url: 'https://api.bitcore.io',
},
},
bch: {
livenet: {
//provider: 'v8',
//url: 'https://cashexplorer.bitcoin.com',
//url: 'https://api.bitcore.io',
//addressFormat: 'cashaddr', // copay, cashaddr, or legacy
provider: 'v8',
url: 'https://api.bitcore.io',
},
testnet: {
provider: 'v8',
url: 'http://localhost:3000',
//url: 'https://api.bitcore.io',
},
},
},
pushNotificationsOpts: {
templatePath: './lib/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
},
// 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: {
// btc: {
// livenet: 'https://insight.bitpay.com/tx/{{txid}}',
// testnet: 'https://test-insight.bitpay.com/tx/{{txid}}',
// },
// bch: {
// livenet: 'https://bch-insight.bitpay.com/#/tx/{{txid}}',
// testnet: 'https://test-bch-insight.bitpay.com/#/tx/{{txid}}',
// }
// },
// },
// To use sendgrid:
// const sgMail = require('@sendgrid/mail');
// sgMail.setApiKey(process.env.SENDGRID_API_KEY);
//
//
// //then add:
// mailer: sgMail,
};
module.exports = config;