Auto-Select first app in Dashboard
Do not verify SSL certificates while in development mode
This commit is contained in:
parent
dc994c754e
commit
7bd6645f85
|
|
@ -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: {
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue