📄 reverb.php
📁 Path: //home2/skhata/new.chandrapharma.com/config/reverb.php
📊 Size: 2.43 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Reverb Server
|--------------------------------------------------------------------------
| Laravel Reverb is a first-party WebSocket server for Laravel.
| Phase 4: replaces polling-based updates with real-time push.
|
| Install: php artisan reverb:install
| Start: php artisan reverb:start --debug
| Prod: Supervisor daemon (see deployment docs)
*/
'default' => env('REVERB_SERVER', 'reverb'),
'servers' => [
'reverb' => [
'host' => env('REVERB_SERVER_HOST', '0.0.0.0'),
'port' => env('REVERB_SERVER_PORT', 8080),
'scheme' => env('REVERB_SCHEME', 'http'),
'options' => [
'tls' => [],
],
'scaling' => [
'enabled' => env('REVERB_SCALING_ENABLED', false),
'channel' => env('REVERB_SCALING_CHANNEL', 'reverb'),
'server' => [
'url' => env('REVERB_SCALING_SERVER_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'port' => env('REDIS_PORT', '6379'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'database' => env('REDIS_DB', '0'),
],
],
],
],
'apps' => [
'provider' => 'config',
'apps' => [
[
'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', 8080),
'scheme' => env('REVERB_SCHEME', 'http'),
'useTLS' => env('REVERB_SCHEME', 'http') === 'https',
],
'allowed_origins' => ['*'],
'ping_interval' => env('REVERB_PING_INTERVAL', 60),
'ping_timeout' => env('REVERB_PING_TIMEOUT', 10),
'activity_timeout' => env('REVERB_ACTIVITY_TIMEOUT', 30),
'max_message_size' => env('REVERB_MAX_MESSAGE_SIZE', 10000),
],
],
],
];