@@ -36,10 +36,20 @@ This is the default content of the config file that will be published as `confi
36
36
``` php
37
37
return [
38
38
39
+ /*
40
+ * Set a custom dashboard configuration
41
+ */
42
+ 'dashboard' => [
43
+ 'port' => env('LARAVEL_WEBSOCKETS_PORT', 6001),
44
+ ],
45
+
39
46
/*
40
47
* This package comes with multi tenancy out of the box. Here you can
41
48
* configure the different apps that can use the webSockets server.
42
49
*
50
+ * Optionally you specify capacity so you can limit the maximum
51
+ * concurrent connections for a specific app.
52
+ *
43
53
* Optionally you can disable client events so clients cannot send
44
54
* messages to each other via the webSockets.
45
55
*/
@@ -49,6 +59,8 @@ return [
49
59
'name' => env('APP_NAME'),
50
60
'key' => env('PUSHER_APP_KEY'),
51
61
'secret' => env('PUSHER_APP_SECRET'),
62
+ 'path' => env('PUSHER_APP_PATH'),
63
+ 'capacity' => null,
52
64
'enable_client_messages' => false,
53
65
'enable_statistics' => true,
54
66
],
@@ -81,6 +93,18 @@ return [
81
93
*/
82
94
'path' => 'laravel-websockets',
83
95
96
+ /*
97
+ * Dashboard Routes Middleware
98
+ *
99
+ * These middleware will be assigned to every dashboard route, giving you
100
+ * the chance to add your own middleware to this list or change any of
101
+ * the existing middleware. Or, you can simply stick with this list.
102
+ */
103
+ 'middleware' => [
104
+ 'web',
105
+ Authorize::class,
106
+ ],
107
+
84
108
'statistics' => [
85
109
/*
86
110
* This model will be used to store the statistics of the WebSocketsServer.
@@ -89,6 +113,12 @@ return [
89
113
*/
90
114
'model' => \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry::class,
91
115
116
+ /**
117
+ * The Statistics Logger will, by default, handle the incoming statistics, store them
118
+ * and then release them into the database on each interval defined below.
119
+ */
120
+ 'logger' => BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class,
121
+
92
122
/*
93
123
* Here you can specify the interval in seconds at which statistics should be logged.
94
124
*/
@@ -99,7 +129,7 @@ return [
99
129
* the number of days specified here will be deleted.
100
130
*/
101
131
'delete_statistics_older_than_days' => 60,
102
-
132
+
103
133
/*
104
134
* Use an DNS resolver to make the requests to the statistics logger
105
135
* default is to resolve everything to 127.0.0.1.
@@ -118,18 +148,27 @@ return [
118
148
* certificate chain of issuers. The private key also may be contained
119
149
* in a separate file specified by local_pk.
120
150
*/
121
- 'local_cert' => null,
151
+ 'local_cert' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT', null) ,
122
152
123
153
/*
124
154
* Path to local private key file on filesystem in case of separate files for
125
155
* certificate (local_cert) and private key.
126
156
*/
127
- 'local_pk' => null,
157
+ 'local_pk' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_PK', null) ,
128
158
129
159
/*
130
160
* Passphrase for your local_cert file.
131
161
*/
132
- 'passphrase' => null
162
+ 'passphrase' => env('LARAVEL_WEBSOCKETS_SSL_PASSPHRASE', null),
133
163
],
164
+
165
+ /*
166
+ * Channel Manager
167
+ * This class handles how channel persistence is handled.
168
+ * By default, persistence is stored in an array by the running webserver.
169
+ * The only requirement is that the class should implement
170
+ * `ChannelManager` interface provided by this package.
171
+ */
172
+ 'channel_manager' => \BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManagers\ArrayChannelManager::class,
134
173
];
135
174
```
0 commit comments