Auto-Select first app in Dashboard

Do not verify SSL certificates while in development mode
This commit is contained in:
Marcel Pociot 2018-12-05 21:09:22 +01:00
parent dc994c754e
commit 7bd6645f85
2 changed files with 9 additions and 0 deletions

View File

@ -106,11 +106,16 @@
logs: [], logs: [],
}, },
mounted() {
this.app = this.apps[0] || null;
},
methods: { methods: {
connect() { connect() {
this.pusher = new Pusher(this.app.key, { this.pusher = new Pusher(this.app.key, {
wsHost: window.location.hostname, wsHost: window.location.hostname,
wsPort: this.port, wsPort: this.port,
wssPort: this.port,
disableStats: true, disableStats: true,
authEndpoint: '/{{ request()->path() }}/auth', authEndpoint: '/{{ request()->path() }}/auth',
auth: { auth: {

View File

@ -48,6 +48,10 @@ class StartWebSocketServer extends Command
{ {
$connector = new Connector($this->loop, [ $connector = new Connector($this->loop, [
'dns' => new DnsResolver(), 'dns' => new DnsResolver(),
'tls' => [
'verify_peer' => config('app.env') === 'production',
'verify_peer_name' => config('app.env') === 'production'
]
]); ]);
$browser = new Browser($this->loop, $connector); $browser = new Browser($this->loop, $connector);