-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL disable verify host #23
Comments
Option 1 - Use GuzzleHttp client options 'connections' => [
// ...
'pusher' => [
// ...
- 'curl_options' => [
- CURLOPT_SSL_VERIFYHOST => 0,
- CURLOPT_SSL_VERIFYPEER => 0,
- ],
+ 'client_options' => [
+ 'verify' => false,
+ ],
],
], Option 2 - Use a customer GuzzleHttp client
public function boot(): void
{
app(BroadcastManager::class)->extend('pusher-custom', function () {
$pusher = new Pusher(
config('broadcasting.connections.pusher.key'),
config('broadcasting.connections.pusher.secret'),
config('broadcasting.connections.pusher.app_id'),
config('broadcasting.connections.pusher.options'),
new \GuzzleHttp\Client(['verify' => false]),
);
return new PusherBroadcaster($pusher);
});
} 'connections' => [
+ 'pusher-custom' => [
+ 'driver' => 'pusher-custom'
+ ],
'pusher' => [ Refs: |
Don't forget to update .env from pusher to pusher-custom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to set SSL disable verify host in config
The text was updated successfully, but these errors were encountered: