copay/config.js

87 lines
1.6 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 = {
// livenet or testnet
2014-04-07 20:54:38 -07:00
networkName: 'testnet',
// 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: '/',
// other PeerJS config
2014-04-24 13:24:43 -07:00
maxPeers: 15,
2014-06-07 09:36:47 -07:00
debug: 3,
// 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-05-05 11:54:17 -07:00
{
2014-05-05 12:28:56 -07:00
url: 'stun:stun01.sipphone.com'
2014-06-07 09:36:47 -07:00
},
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-02 13:40:29 -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,
2014-05-07 06:34:05 -07:00
storageSalt: 'mjuBtGybi/4=',
},
// theme list
2014-05-01 07:19:27 -07:00
themes: ['default'],
2014-05-07 06:34:05 -07:00
verbose: 1,
2014-04-07 20:54:38 -07:00
};