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