Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/config/broadcasting.php
7382 views
1
<?php
2
3
return [
4
/*
5
|--------------------------------------------------------------------------
6
| Default Broadcaster
7
|--------------------------------------------------------------------------
8
|
9
| This option controls the default broadcaster that will be used by the
10
| framework when an event needs to be broadcast. You may set this to
11
| any of the connections defined in the "connections" array below.
12
|
13
| Supported: "pusher", "ably", "redis", "log", "null"
14
|
15
*/
16
17
'default' => env('BROADCAST_DRIVER', 'null'),
18
19
/*
20
|--------------------------------------------------------------------------
21
| Broadcast Connections
22
|--------------------------------------------------------------------------
23
|
24
| Here you may define all of the broadcast connections that will be used
25
| to broadcast events to other systems or over websockets. Samples of
26
| each available type of connection are provided inside this array.
27
|
28
*/
29
30
'connections' => [
31
'pusher' => [
32
'driver' => 'pusher',
33
'key' => env('PUSHER_APP_KEY'),
34
'secret' => env('PUSHER_APP_SECRET'),
35
'app_id' => env('PUSHER_APP_ID'),
36
'options' => [
37
'host' => env('PUSHER_HOST', 'api-' . env('PUSHER_APP_CLUSTER', 'mt1') . '.pusher.com') ?: 'api-' . env('PUSHER_APP_CLUSTER', 'mt1') . '.pusher.com',
38
'port' => env('PUSHER_PORT', 443),
39
'scheme' => env('PUSHER_SCHEME', 'https'),
40
'encrypted' => true,
41
'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
42
],
43
'client_options' => [
44
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
45
],
46
],
47
48
'ably' => [
49
'driver' => 'ably',
50
'key' => env('ABLY_KEY'),
51
],
52
53
'redis' => [
54
'driver' => 'redis',
55
'connection' => 'default',
56
],
57
58
'log' => [
59
'driver' => 'log',
60
],
61
62
'null' => [
63
'driver' => 'null',
64
],
65
],
66
];
67
68