copay/config.js

130 lines
3.0 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-06-26 14:47:27 -07:00
networkName: 'livenet',
2014-07-08 08:34:49 -07:00
forceNetwork: false,
// 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',
2014-06-27 14:03:20 -07:00
// host: '162.242.219.26',
// port: 10000,
// secure: false,
host: 'live.copay.io',
port: 9000,
secure: true,
2014-04-24 13:24:43 -07:00
path: '/',
// 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,
spendUnconfirmed: true,
2014-04-16 13:50:10 -07:00
verbose: 1,
2014-06-30 07:53:20 -07:00
// will duplicate itself after each try
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: {
2014-06-26 14:47:27 -07:00
schema: 'https',
host: 'insight.bitpay.com',
port: 443,
2014-06-05 08:18:54 -07:00
retryDelay: 1000,
},
// socket service API config
socket: {
2014-06-26 14:47:27 -07:00
schema: 'https',
host: 'insight.bitpay.com',
port: 443,
2014-06-30 07:53:20 -07:00
reconnectDelay: 1000,
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'],
2014-06-27 13:09:12 -07:00
disableVideo: true,
2014-05-07 06:34:05 -07:00
verbose: 1,
2014-04-07 20:54:38 -07:00
};
2014-07-08 09:03:59 -07:00
if (typeof module !== 'undefined')
module.exports = defaultConfig;