forked from bitpay/wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
131 lines (119 loc) · 2.91 KB
/
config.js
File metadata and controls
131 lines (119 loc) · 2.91 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
'use strict';
var defaultConfig = {
// livenet or testnet
networkName: 'testnet',
// wallet limits
limits: {
totalCopayers: 12,
mPlusN: 100
},
// network layer (PeerJS) config
network: {
// Use this to run your own local PeerJS server
// with params: ./peerjs -p 10009 -k '6d6d751ea61e26f2'
/*
key: '6d6d751ea61e26f2',
host: 'localhost',
port: 10009,
path: '/',
*/
// Use this to connect to bitpay's PeerJS server
key: 'satoshirocks',
host: '162.242.219.26',
port: 80,
path: '/',
// other PeerJS config
maxPeers: 15,
debug: 3,
// Network encryption config
sjclParams: {
salt: 'mjuBtGybi/4=', // choose your own salt (base64)
iter: 1000,
mode: 'ccm',
ts: parseInt(64),
},
// PeerJS internal config object
config: {
'iceServers': [
// Pass in STUN and TURN servers for maximum network compatibility
{
url: 'stun:stun01.sipphone.com'
}, {
url: 'stun:stun.ekiga.net'
}, {
url: 'stun:stun.fwdnet.net'
}, {
url: 'stun:stun.ideasip.com'
}, {
url: 'stun:stun.iptel.org'
}, {
url: 'stun:stun.rixtelecom.se'
}, {
url: 'stun:stun.schlund.de'
}, {
url: 'stun:stun.l.google.com:19302'
}, {
url: 'stun:stun1.l.google.com:19302'
}, {
url: 'stun:stun2.l.google.com:19302'
}, {
url: 'stun:stun3.l.google.com:19302'
}, {
url: 'stun:stun4.l.google.com:19302'
}, {
url: 'stun:stunserver.org'
}, {
url: 'stun:stun.softjoys.com'
}, {
url: 'stun:stun.voiparound.com'
}, {
url: 'stun:stun.voipbuster.com'
}, {
url: 'stun:stun.voipstunt.com'
}, {
url: 'stun:stun.voxgratia.org'
}, {
url: 'stun:stun.xten.com'
}, {
url: 'turn:numb.viagenie.ca',
credential: 'muazkh',
username: 'webrtc@live.com'
}, {
url: 'turn:192.158.29.39:3478?transport=udp',
credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
username: '28224511:1379330808'
}, {
url: 'turn:192.158.29.39:3478?transport=tcp',
credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
username: '28224511:1379330808'
}
]
}
},
// wallet default config
wallet: {
requiredCopayers: 2,
totalCopayers: 3,
spendUnconfirmed: 1,
verbose: 1,
reconnectDelay: 5000,
},
// blockchain service API config
blockchain: {
host: 'test.insight.is',
port: 80
},
// socket service API config
socket: {
host: 'test.insight.is',
port: 80
},
// local encryption/security config
passphrase: {
iterations: 100,
storageSalt: 'mjuBtGybi/4=',
},
// theme list
themes: ['default'],
verbose: 1,
};