2014-03-14 13:38:27 -07:00
|
|
|
'use strict';
|
2014-05-13 10:19:37 -07:00
|
|
|
var defaultConfig = {
|
2014-09-05 12:56:47 -07:00
|
|
|
defaultLanguage: 'en',
|
2014-06-16 08:44:18 -07:00
|
|
|
// DEFAULT network (livenet or testnet)
|
2014-09-22 10:53:11 -07:00
|
|
|
networkName: 'livenet',
|
2014-10-31 16:10:11 -07:00
|
|
|
logLevel: 'info',
|
2014-06-02 08:55:32 -07:00
|
|
|
|
2014-06-16 08:44:18 -07:00
|
|
|
|
2014-06-02 08:55:32 -07:00
|
|
|
// wallet limits
|
|
|
|
limits: {
|
2014-12-05 11:51:47 -08:00
|
|
|
totalCopayers: 6,
|
2014-08-21 12:02:02 -07:00
|
|
|
mPlusN: 100,
|
2014-06-02 08:55:32 -07:00
|
|
|
},
|
|
|
|
|
2014-08-07 14:10:02 -07:00
|
|
|
// network layer config
|
2014-04-15 08:17:28 -07:00
|
|
|
network: {
|
2014-09-09 17:52:15 -07:00
|
|
|
testnet: {
|
2014-10-06 09:35:06 -07:00
|
|
|
url: 'https://test-insight.bitpay.com:443',
|
|
|
|
transports: ['polling'],
|
2014-09-09 17:52:15 -07:00
|
|
|
},
|
|
|
|
livenet: {
|
2014-10-06 09:35:06 -07:00
|
|
|
url: 'https://insight.bitpay.com:443',
|
|
|
|
transports: ['polling'],
|
2014-09-09 17:52:15 -07:00
|
|
|
},
|
2014-04-15 08:17:28 -07:00
|
|
|
},
|
2014-06-02 08:55:32 -07:00
|
|
|
|
|
|
|
// wallet default config
|
2014-04-15 06:22:50 -07:00
|
|
|
wallet: {
|
|
|
|
requiredCopayers: 2,
|
|
|
|
totalCopayers: 3,
|
2014-06-19 06:30:53 -07:00
|
|
|
spendUnconfirmed: true,
|
2014-06-09 15:35:30 -07:00
|
|
|
reconnectDelay: 5000,
|
2014-09-03 09:17:59 -07:00
|
|
|
idleDurationMin: 4,
|
|
|
|
settings: {
|
|
|
|
unitName: 'bits',
|
|
|
|
unitToSatoshi: 100,
|
2014-09-03 12:24:25 -07:00
|
|
|
unitDecimals: 2,
|
2014-09-03 09:17:59 -07:00
|
|
|
alternativeName: 'US Dollar',
|
|
|
|
alternativeIsoCode: 'USD',
|
|
|
|
}
|
2014-04-15 06:22:50 -07:00
|
|
|
},
|
2014-06-02 08:55:32 -07:00
|
|
|
|
|
|
|
// local encryption/security config
|
2014-10-11 04:43:51 -07:00
|
|
|
passphraseConfig: {
|
2014-12-06 17:40:36 -08:00
|
|
|
iterations: 5000,
|
2014-06-16 08:44:18 -07:00
|
|
|
storageSalt: 'mjuBtGybi/4=',
|
2014-05-07 06:34:05 -07:00
|
|
|
},
|
2014-06-02 08:55:32 -07:00
|
|
|
|
2014-11-28 06:23:08 -08:00
|
|
|
rates: {
|
|
|
|
url: 'https://insight.bitpay.com:443/api/rates',
|
2014-08-29 08:09:39 -07:00
|
|
|
},
|
|
|
|
|
2014-09-01 11:13:23 -07:00
|
|
|
verbose: 1,
|
|
|
|
|
|
|
|
plugins: {
|
2014-10-24 08:24:44 -07:00
|
|
|
//LocalStorage: true,
|
2014-11-07 12:35:32 -08:00
|
|
|
// EncryptedLocalStorage: true,
|
2014-09-19 13:30:56 -07:00
|
|
|
//GoogleDrive: true,
|
2014-10-24 05:36:28 -07:00
|
|
|
//InsightStorage: true
|
2014-10-30 12:20:25 -07:00
|
|
|
EncryptedInsightStorage: true,
|
2014-10-23 11:47:24 -07:00
|
|
|
},
|
|
|
|
|
2014-11-10 11:32:55 -08:00
|
|
|
// This can be changed on the UX > Settings > Insight livenet
|
2014-10-24 08:24:44 -07:00
|
|
|
EncryptedInsightStorage: {
|
2014-11-10 11:32:55 -08:00
|
|
|
url: 'https://insight.bitpay.com:443/api/email',
|
2014-11-10 17:58:46 -08:00
|
|
|
//url: 'http://localhost:3001/api/email'
|
|
|
|
|
|
|
|
// This KDF parameters are for the passphrase for Insight authentication
|
|
|
|
// Are not related to encryption itself.
|
|
|
|
//
|
|
|
|
// WARN: Changing this parameters would prevent accesing previously created profiles.
|
|
|
|
iterations: 1000,
|
|
|
|
salt: 'jBbYTj8zTrOt6V',
|
2014-09-01 11:13:23 -07:00
|
|
|
},
|
|
|
|
|
2014-09-01 12:31:35 -07:00
|
|
|
GoogleDrive: {
|
2014-09-20 03:30:02 -07:00
|
|
|
home: 'copay',
|
|
|
|
|
2014-10-23 11:47:24 -07:00
|
|
|
/*
|
2014-09-20 03:30:02 -07:00
|
|
|
* This clientId was generated at:
|
|
|
|
* https://console.developers.google.com/project
|
|
|
|
* To run Copay with Google Drive at your domain you need
|
|
|
|
* to generata your own Id.
|
|
|
|
*/
|
|
|
|
// for localhost:3001 you can use you can:
|
2014-09-04 12:23:37 -07:00
|
|
|
clientId: '232630733383-a35gcnovnkgka94394i88gq60vtjb4af.apps.googleusercontent.com',
|
2014-09-20 03:30:02 -07:00
|
|
|
|
|
|
|
// for copay.io:
|
|
|
|
// clientId: '1036948132229-biqm3b8sirik9lt5rtvjo9kjjpotn4ac.apps.googleusercontent.com',
|
2014-09-01 11:13:23 -07:00
|
|
|
},
|
2014-11-04 06:30:44 -08:00
|
|
|
|
2014-11-04 06:45:41 -08:00
|
|
|
developmentFeatures: false
|
2014-11-04 06:30:44 -08:00
|
|
|
|
2014-04-07 20:54:38 -07:00
|
|
|
};
|
2014-07-08 09:03:59 -07:00
|
|
|
if (typeof module !== 'undefined')
|
2014-09-03 09:17:59 -07:00
|
|
|
module.exports = defaultConfig;
|