mirror of https://github.com/BTCPrivate/copay.git
132 lines
2.9 KiB
JavaScript
132 lines
2.9 KiB
JavaScript
|
'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: '[email protected]'
|
||
|
}, {
|
||
|
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,
|
||
|
};
|