copay/config.js

122 lines
2.8 KiB
JavaScript
Raw Normal View History

2014-03-14 13:38:27 -07:00
'use strict';
2014-05-13 10:19:37 -07:00
var defaultConfig = {
// DEFAULT network (livenet or testnet)
2014-04-07 20:54:38 -07:00
networkName: 'testnet',
// DEFAULT unit: Bit
unitName: 'bits',
unitToSatoshi: 100,
// wallet limits
limits: {
totalCopayers: 12,
mPlusN: 100
},
// network layer (PeerJS) config
2014-04-15 08:17:28 -07:00
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',
2014-06-05 10:55:19 -07:00
port: 10000,
2014-04-24 13:24:43 -07:00
path: '/',
2014-06-10 06:06:08 -07:00
secure: false,
// other PeerJS config
2014-04-24 13:24:43 -07:00
maxPeers: 15,
2014-06-09 16:08:12 -07:00
debug: 2,
// Network encryption config
2014-04-29 15:51:49 -07:00
sjclParams: {
2014-04-29 16:56:28 -07:00
salt: 'mjuBtGybi/4=', // choose your own salt (base64)
2014-05-05 11:54:17 -07:00
iter: 1000,
mode: 'ccm',
ts: parseInt(64),
},
// PeerJS internal config object
2014-05-05 11:54:17 -07:00
config: {
'iceServers': [
2014-05-05 12:28:56 -07:00
// Pass in STUN and TURN servers for maximum network compatibility
2014-06-09 15:35:30 -07:00
{
2014-06-09 16:11:09 -07:00
url: 'stun:162.242.219.26'
2014-06-09 15:35:30 -07:00
}, {
2014-06-09 16:11:09 -07:00
url: 'turn:162.242.219.26',
username: 'bitcore',
credential: 'bitcore',
2014-06-09 15:35:30 -07:00
}
2014-06-09 16:11:09 -07:00
// {
// 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'
// }
2014-06-09 12:20:23 -07:00
// // Options fot TURN servers with p2p communications are not possible.
// {
// 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'
// }
2014-05-05 11:54:17 -07:00
]
2014-04-29 15:51:49 -07:00
}
2014-04-15 08:17:28 -07:00
},
// wallet default config
2014-04-15 06:22:50 -07:00
wallet: {
requiredCopayers: 2,
totalCopayers: 3,
2014-04-16 13:50:10 -07:00
spendUnconfirmed: 1,
verbose: 1,
2014-06-09 15:35:30 -07:00
reconnectDelay: 5000,
2014-04-15 06:22:50 -07:00
},
// blockchain service API config
2014-04-15 14:23:35 -07:00
blockchain: {
host: 'test.insight.is',
2014-06-05 08:18:54 -07:00
port: 80,
retryDelay: 1000,
},
// socket service API config
socket: {
host: 'test.insight.is',
2014-06-05 08:18:54 -07:00
port: 80,
// will duplicate itself after each try
reconnectDelay: 500,
2014-04-14 13:17:56 -07:00
},
// local encryption/security config
2014-05-07 06:34:05 -07:00
passphrase: {
2014-05-16 08:40:26 -07:00
iterations: 100,
storageSalt: 'mjuBtGybi/4=',
2014-05-07 06:34:05 -07:00
},
// theme list
2014-05-01 07:19:27 -07:00
themes: ['default'],
disableVideo: 1,
2014-05-07 06:34:05 -07:00
verbose: 1,
2014-04-07 20:54:38 -07:00
};