From 93cc51ed00dd84df64ff028bfc31be2165c3dcfe Mon Sep 17 00:00:00 2001 From: Oanh Nguyen Date: Tue, 7 Jun 2022 22:03:59 +0700 Subject: [PATCH] [9.x] Improve Pusher configuration for easy development (#5897) * Improve Pusher configuration for easy development * Fix style-ci --- config/broadcasting.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/broadcasting.php b/config/broadcasting.php index 67fcbbd6..7cc99087 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -36,8 +36,11 @@ 'secret' => env('PUSHER_APP_SECRET'), 'app_id' => env('PUSHER_APP_ID'), 'options' => [ - 'cluster' => env('PUSHER_APP_CLUSTER'), - 'useTLS' => true, + 'host' => env('PUSHER_HOST', 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com'), + 'port' => env('PUSHER_PORT', 443), + 'scheme' => env('PUSHER_SCHEME', 'https'), + 'encrypted' => true, + 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', ], 'client_options' => [ // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html