forked from bitpay/wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
97 lines (82 loc) · 2.2 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
'use strict';
var defaultConfig = {
defaultLanguage: 'en',
// DEFAULT network (livenet or testnet)
networkName: 'livenet',
logLevel: 'info',
// wallet limits
limits: {
totalCopayers: 6,
mPlusN: 100,
},
// network layer config
network: {
testnet: {
url: 'https://test-insight.bitpay.com:443',
transports: ['polling'],
},
livenet: {
url: 'https://insight.bitpay.com:443',
transports: ['polling'],
},
},
// wallet default config
wallet: {
requiredCopayers: 2,
totalCopayers: 3,
spendUnconfirmed: true,
reconnectDelay: 5000,
idleDurationMin: 4,
settings: {
unitName: 'bits',
unitToSatoshi: 100,
unitDecimals: 2,
alternativeName: 'US Dollar',
alternativeIsoCode: 'USD',
}
},
// local encryption/security config
passphraseConfig: {
iterations: 5000,
storageSalt: 'mjuBtGybi/4=',
},
rates: {
url: 'https://insight.bitpay.com:443/api/rates',
},
verbose: 1,
plugins: {
//LocalStorage: true,
// EncryptedLocalStorage: true,
//GoogleDrive: true,
//InsightStorage: true
EncryptedInsightStorage: true,
},
// This can be changed on the UX > Settings > Insight livenet
EncryptedInsightStorage: {
url: 'https://insight.bitpay.com:443/api/email',
//url: 'http://localhost:3001/api/email'
// This KDF parameters are for the passphrase for Insight authentication
// Are not related to encryption itself.
//
// WARN: Changing this parameters would prevent accesing previously created profiles.
iterations: 1000,
salt: 'jBbYTj8zTrOt6V',
},
minPasswordStrength: 4,
/*
GoogleDrive: {
home: 'copay',
// This clientId was generated at:
// https://console.developers.google.com/project
// To run Copay with Google Drive at your domain you need
// to generata your own Id.
// for localhost:3001 you can use you can:
//
clientId: '232630733383-a35gcnovnkgka94394i88gq60vtjb4af.apps.googleusercontent.com',
// for copay.io:
// clientId: '1036948132229-biqm3b8sirik9lt5rtvjo9kjjpotn4ac.apps.googleusercontent.com',
},
*/
};
if (typeof module !== 'undefined')
module.exports = defaultConfig;