Merge pull request #1754 from matiu/fix/endpoint

default email storage to livenet
This commit is contained in:
Matias Alejo Garcia 2014-11-10 20:12:44 -03:00
commit 7207f03bd1
3 changed files with 5 additions and 6 deletions

View file

@ -61,12 +61,10 @@ var defaultConfig = {
EncryptedInsightStorage: true, EncryptedInsightStorage: true,
}, },
// This can be changed on the UX > Settings > Insight livenet
EncryptedInsightStorage: { EncryptedInsightStorage: {
// THIS IS WRONG BUT DO NOT CHANGE IT WITH OUT A MIGRATION PLAN url: 'https://insight.bitpay.com:443/api/email',
// ALSO CHANGE THE DEFAULT AT js/plugins/InsightStorage.js //url: 'http://localhost:3001/api/email'
//
url: 'https://test-insight.bitpay.com:443/api/email'
// url: 'http://localhost:3001/api/email'
}, },
GoogleDrive: { GoogleDrive: {

View file

@ -93,6 +93,7 @@ angular.module('copayApp.controllers').controller('SettingsController', function
defaultLanguage: $scope.selectedLanguage.isoCode, defaultLanguage: $scope.selectedLanguage.isoCode,
plugins: plugins, plugins: plugins,
logLevel: $scope.selectedLogLevel.name, logLevel: $scope.selectedLogLevel.name,
EncryptedInsightStorage: {url: insightSettings.livenet.url + '/api/email' },
})); }));
// Go home reloading the application // Go home reloading the application

View file

@ -8,7 +8,7 @@ var SEPARATOR = '|';
function InsightStorage(config) { function InsightStorage(config) {
this.type = 'DB'; this.type = 'DB';
this.storeUrl = config.url || 'https://test-insight.bitpay.com:443/api/email'; this.storeUrl = config.url || 'https://insight.bitpay.com:443/api/email',
this.request = config.request || request; this.request = config.request || request;
} }