laravel / reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.
https://reverb.laravel.com
MIT License
1.02k stars 71 forks source link

[1.x] Improve TLS check #158

Closed joedixon closed 4 months ago

joedixon commented 4 months ago

This PR resolves #155

Currently we check whether the SSL context is empty, which allows users to use environment variables to toggle SSL support between environments.

However, that requires all SSL context options to be null, but we are only really interested in checking local_cert and local_pk.

Other variables can be set and not impact whether or not the server is started securely.