defaults to SSL server of peerjs
This commit is contained in:
parent
1ff057f892
commit
1d45e0fc5d
3 changed files with 8 additions and 8 deletions
|
|
@ -26,10 +26,10 @@ var defaultConfig = {
|
|||
|
||||
// Use this to connect to bitpay's PeerJS server
|
||||
key: 'satoshirocks',
|
||||
host: '162.242.219.26',
|
||||
port: 10000,
|
||||
host: 'copay.io',
|
||||
port: 9000,
|
||||
path: '/',
|
||||
secure: false,
|
||||
secure: true,
|
||||
|
||||
// other PeerJS config
|
||||
maxPeers: 15,
|
||||
|
|
|
|||
|
|
@ -871,8 +871,8 @@
|
|||
<input type="text" ng-model="networkHost" class="form-control" name="peerjs-host">
|
||||
<label for="peerjs-port">Port</label>
|
||||
<input type="number" ng-model="networkPort" class="form-control" name="peerjs-port">
|
||||
<input id="peerjs-secure" type="checkbox" ng-model="networkSecure" class="form-control" disabled="disabled">
|
||||
<label for="peerjs-secure">Use SSL (disabled)</label>
|
||||
<input id="peerjs-secure" type="checkbox" ng-model="networkSecure" class="form-control">
|
||||
<label for="peerjs-secure">Use SSL</label>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ angular.module('copayApp.controllers').controller('SettingsController',
|
|||
$scope.networkHost = config.network.host;
|
||||
$scope.networkPort = config.network.port;
|
||||
$scope.networkSecure = config.network.secure || false;
|
||||
$scope.disableVideo = config.disableVideo || true;
|
||||
$scope.disableVideo = typeof config.disableVideo === undefined ? true : config.disableVideo;
|
||||
|
||||
$scope.unitOpts = [{
|
||||
name: 'Satoshis (100,000,000 satoshis = 1BTC)',
|
||||
|
|
@ -39,12 +39,12 @@ angular.module('copayApp.controllers').controller('SettingsController',
|
|||
}
|
||||
|
||||
$scope.changeNetwork = function() {
|
||||
$scope.insightHost = $scope.networkName === 'testnet' ? 'test-insight.bitpay.com' : 'insight.bitpay.com';
|
||||
$scope.insightHost = $scope.networkName !== 'testnet' ? 'test-insight.bitpay.com' : 'insight.bitpay.com';
|
||||
};
|
||||
|
||||
|
||||
$scope.changeInsightSSL = function() {
|
||||
$scope.insightPort = $scope.insightSecure ? 443 : 80;
|
||||
$scope.insightPort = $scope.insightSecure ? 80 : 443;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue