- Fix: broadcasting.php config (was missing, broadcast failed) - Fix: Echo class global scope (window.EchoClass) - Fix: Nginx WebSocket proxy for Reverb - Fix: Firewall port 8087 opened - Fix: Duplicate event listener cleanup - Fix: Mark as read functionality - Add: CreateViolationNotification listener - Add: Notifications index page with pagination - Add: Timezone Asia/Jakarta support - Add: Real-time badge across all pages - Remove: toOthers() so recorder also gets notification - Update: .env.example with new variables
57 lines
1.5 KiB
PHP
57 lines
1.5 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
'default' => env('BROADCAST_CONNECTION', 'reverb'),
|
|
|
|
'connections' => [
|
|
|
|
'reverb' => [
|
|
'driver' => 'reverb',
|
|
'key' => env('REVERB_APP_KEY'),
|
|
'secret' => env('REVERB_APP_SECRET'),
|
|
'app_id' => env('REVERB_APP_ID'),
|
|
'options' => [
|
|
'host' => env('REVERB_HOST', 'localhost'),
|
|
'port' => env('REVERB_PORT', 8087),
|
|
'scheme' => env('REVERB_SCHEME', 'http'),
|
|
'useTLS' => env('REVERB_SCHEME', 'https') === 'https',
|
|
],
|
|
'client_options' => [
|
|
// Guzzle client options
|
|
],
|
|
],
|
|
|
|
'pusher' => [
|
|
'driver' => 'pusher',
|
|
'key' => env('PUSHER_APP_KEY'),
|
|
'secret' => env('PUSHER_APP_SECRET'),
|
|
'app_id' => env('PUSHER_APP_ID'),
|
|
'options' => [
|
|
'cluster' => env('PUSHER_APP_CLUSTER'),
|
|
'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' => [],
|
|
],
|
|
|
|
'ably' => [
|
|
'driver' => 'ably',
|
|
'key' => env('ABLY_KEY'),
|
|
],
|
|
|
|
'log' => [
|
|
'driver' => 'log',
|
|
],
|
|
|
|
'null' => [
|
|
'driver' => 'null',
|
|
],
|
|
|
|
],
|
|
|
|
];
|