mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-27 09:45:58 -04:00
fix(reverb): remove public Pusher connection options
This commit is contained in:
@@ -76,12 +76,6 @@ return [
|
||||
'key' => env('PUSHER_APP_KEY', 'coolify'),
|
||||
'secret' => env('PUSHER_APP_SECRET', 'coolify'),
|
||||
'app_id' => env('PUSHER_APP_ID', 'coolify'),
|
||||
'options' => [
|
||||
'host' => env('PUSHER_HOST', 'coolify'),
|
||||
'port' => env('PUSHER_PORT', 6001),
|
||||
'scheme' => env('PUSHER_SCHEME', 'http'),
|
||||
'useTLS' => env('PUSHER_SCHEME', 'http') === 'https',
|
||||
],
|
||||
'allowed_origins' => ['*'],
|
||||
'ping_interval' => 60,
|
||||
'activity_timeout' => 30,
|
||||
|
||||
@@ -140,7 +140,8 @@ it('removes the dedicated realtime service from bundled compose files', function
|
||||
it('keeps the internal Reverb listen port separate from the public Pusher port', function () {
|
||||
expect(file_get_contents(config_path('reverb.php')))
|
||||
->toContain("'port' => env('PUSHER_BACKEND_PORT', 6001)")
|
||||
->toContain("'port' => env('PUSHER_PORT', 6001)")
|
||||
->not->toContain('PUSHER_PORT')
|
||||
->not->toContain("env('PUSHER_HOST', 'coolify')")
|
||||
->and(file_get_contents(base_path('docker/production/etc/s6-overlay/s6-rc.d/reverb/run')))
|
||||
->toContain('exec php artisan reverb:start --host=0.0.0.0 --port=${PUSHER_BACKEND_PORT:-6001}')
|
||||
->and(file_get_contents(base_path('docker/development/etc/s6-overlay/s6-rc.d/reverb/run')))
|
||||
|
||||
Reference in New Issue
Block a user