works without config.js, and improved docs
This commit is contained in:
parent
40f8db0e91
commit
50dbb5b277
3 changed files with 56 additions and 20 deletions
|
|
@ -1,26 +1,44 @@
|
|||
'use strict';
|
||||
var defaultConfig = {
|
||||
// livenet or testnet
|
||||
networkName: 'testnet',
|
||||
|
||||
// wallet limits
|
||||
limits: {
|
||||
totalCopayers: 12,
|
||||
mPlusN: 100
|
||||
},
|
||||
|
||||
// network layer (PeerJS) config
|
||||
network: {
|
||||
// key: 'lwjd5qra8257b9', //Copay API key for public PeerJS server
|
||||
// This is for running local peerJs with params: ./peerjs -p 10009 -k 'sdfjhwefh'
|
||||
//key: 'sdfjhwefh',
|
||||
//host: 'localhost',
|
||||
//port: 10009,
|
||||
//path: '/',
|
||||
//
|
||||
key: 'satoshirocks', // api key for the peerjs server
|
||||
host: '162.242.219.26', // peerjs server
|
||||
// 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',
|
||||
port: 80,
|
||||
path: '/',
|
||||
|
||||
// other PeerJS config
|
||||
maxPeers: 15,
|
||||
debug: 3,
|
||||
|
||||
// Network encryption config
|
||||
sjclParams: {
|
||||
salt: 'mjuBtGybi/4=', // choose your own salt (base64)
|
||||
iter: 1000,
|
||||
mode: 'ccm',
|
||||
ts: parseInt(64),
|
||||
},
|
||||
|
||||
// PeerJS internal config object
|
||||
config: {
|
||||
'iceServers': [
|
||||
// Pass in STUN and TURN servers for maximum network compatibility
|
||||
|
|
@ -78,28 +96,35 @@ var defaultConfig = {
|
|||
]
|
||||
}
|
||||
},
|
||||
limits: {
|
||||
totalCopayers: 12,
|
||||
mPlusN: 100
|
||||
},
|
||||
|
||||
// wallet default config
|
||||
wallet: {
|
||||
requiredCopayers: 2,
|
||||
totalCopayers: 3,
|
||||
spendUnconfirmed: 1,
|
||||
verbose: 1,
|
||||
},
|
||||
|
||||
// blockchain service API config
|
||||
blockchain: {
|
||||
host: 'test.insight.is',
|
||||
port: 3001
|
||||
},
|
||||
// socket service API config
|
||||
socket: {
|
||||
host: 'test.insight.is',
|
||||
port: 3001
|
||||
},
|
||||
|
||||
// local encryption/security config
|
||||
passphrase: {
|
||||
iterations: 100,
|
||||
storageSalt: 'mjuBtGybi/4=',
|
||||
},
|
||||
|
||||
// theme list
|
||||
themes: ['default'],
|
||||
|
||||
|
||||
verbose: 1,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue