Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 7bd6645

Browse files
committed
Auto-Select first app in Dashboard
Do not verify SSL certificates while in development mode
1 parent dc994c7 commit 7bd6645

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

resources/views/dashboard.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,16 @@
106106
logs: [],
107107
},
108108
109+
mounted() {
110+
this.app = this.apps[0] || null;
111+
},
112+
109113
methods: {
110114
connect() {
111115
this.pusher = new Pusher(this.app.key, {
112116
wsHost: window.location.hostname,
113117
wsPort: this.port,
118+
wssPort: this.port,
114119
disableStats: true,
115120
authEndpoint: '/{{ request()->path() }}/auth',
116121
auth: {

src/Console/StartWebSocketServer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ protected function configureStatisticsLogger()
4848
{
4949
$connector = new Connector($this->loop, [
5050
'dns' => new DnsResolver(),
51+
'tls' => [
52+
'verify_peer' => config('app.env') === 'production',
53+
'verify_peer_name' => config('app.env') === 'production'
54+
]
5155
]);
5256

5357
$browser = new Browser($this->loop, $connector);

0 commit comments

Comments
 (0)