2014-03-14 17:38:27 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
2014-04-08 00:54:38 -03:00
|
|
|
var config = {
|
|
|
|
|
networkName: 'testnet',
|
2014-04-15 12:17:28 -03:00
|
|
|
network: {
|
2014-04-24 17:24:43 -03:00
|
|
|
// key: 'lwjd5qra8257b9', //Copay API key for public PeerJS server
|
2014-04-17 16:27:15 -03:00
|
|
|
// This is for running local peerJs with params: ./peerjs -p 10009 -k 'sdfjhwefh'
|
2014-04-20 16:01:23 -03:00
|
|
|
//key: 'sdfjhwefh',
|
|
|
|
|
//host: 'localhost',
|
|
|
|
|
//port: 10009,
|
|
|
|
|
//path: '/',
|
2014-05-05 15:54:17 -03:00
|
|
|
//
|
2014-04-29 19:51:49 -03:00
|
|
|
key: 'g23ihfh82h35rf', // api key for the peerjs server
|
2014-05-05 15:54:17 -03:00
|
|
|
host: '162.242.219.26', // peerjs server
|
|
|
|
|
port: 10009,
|
2014-04-24 17:24:43 -03:00
|
|
|
path: '/',
|
|
|
|
|
maxPeers: 15,
|
2014-05-05 15:54:17 -03:00
|
|
|
debug: 3,
|
2014-04-29 19:51:49 -03:00
|
|
|
sjclParams: {
|
2014-04-29 20:56:28 -03:00
|
|
|
salt: 'mjuBtGybi/4=', // choose your own salt (base64)
|
2014-05-05 15:54:17 -03:00
|
|
|
iter: 1000,
|
|
|
|
|
mode: 'ccm',
|
|
|
|
|
ts: parseInt(64),
|
|
|
|
|
},
|
|
|
|
|
config: {
|
|
|
|
|
'iceServers': [
|
2014-05-05 16:28:56 -03:00
|
|
|
// Pass in STUN and TURN servers for maximum network compatibility
|
2014-05-05 15:54:17 -03:00
|
|
|
{
|
2014-05-05 16:28:56 -03:00
|
|
|
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'
|
|
|
|
|
}, {
|
2014-05-05 15:54:17 -03:00
|
|
|
url: 'stun:stun.l.google.com:19302'
|
2014-05-05 16:28:56 -03:00
|
|
|
}, {
|
|
|
|
|
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'
|
2014-05-05 15:54:17 -03:00
|
|
|
}
|
|
|
|
|
]
|
2014-04-29 19:51:49 -03:00
|
|
|
}
|
2014-04-15 12:17:28 -03:00
|
|
|
},
|
2014-04-16 17:07:14 -03:00
|
|
|
limits: {
|
|
|
|
|
totalCopayers: 10,
|
|
|
|
|
mPlusN: 15
|
|
|
|
|
},
|
2014-04-15 10:22:50 -03:00
|
|
|
wallet: {
|
|
|
|
|
requiredCopayers: 2,
|
|
|
|
|
totalCopayers: 3,
|
2014-04-16 17:50:10 -03:00
|
|
|
spendUnconfirmed: 1,
|
|
|
|
|
verbose: 1,
|
2014-04-15 10:22:50 -03:00
|
|
|
},
|
2014-04-15 18:23:35 -03:00
|
|
|
blockchain: {
|
2014-04-18 14:18:52 -03:00
|
|
|
host: 'test.insight.is',
|
2014-04-18 19:28:28 -03:00
|
|
|
port: 3001
|
2014-04-17 06:43:30 -03:00
|
|
|
},
|
|
|
|
|
socket: {
|
2014-04-18 14:18:52 -03:00
|
|
|
host: 'test.insight.is',
|
2014-04-18 19:28:28 -03:00
|
|
|
port: 3001
|
2014-04-14 17:17:56 -03:00
|
|
|
},
|
2014-05-07 10:34:05 -03:00
|
|
|
passphrase: {
|
2014-05-07 18:48:56 -03:00
|
|
|
iterations: 1000,
|
2014-05-07 10:34:05 -03:00
|
|
|
storageSalt: 'mjuBtGybi/4=',
|
|
|
|
|
},
|
2014-05-01 11:19:27 -03:00
|
|
|
themes: ['default'],
|
2014-05-07 10:34:05 -03:00
|
|
|
verbose: 1,
|
2014-04-08 00:54:38 -03:00
|
|
|
};
|
2014-04-15 14:28:49 -03:00
|
|
|
|
2014-05-05 15:54:17 -03:00
|
|
|
var log = function() {
|
2014-04-15 14:28:49 -03:00
|
|
|
if (config.verbose) console.log(arguments);
|
|
|
|
|
}
|