@@ -36,10 +36,20 @@ This is the default content of the config file that will be published as `confi
3636``` php
3737return [
3838
39+ /*
40+ * Set a custom dashboard configuration
41+ */
42+ 'dashboard' => [
43+ 'port' => env('LARAVEL_WEBSOCKETS_PORT', 6001),
44+ ],
45+
3946 /*
4047 * This package comes with multi tenancy out of the box. Here you can
4148 * configure the different apps that can use the webSockets server.
4249 *
50+ * Optionally you specify capacity so you can limit the maximum
51+ * concurrent connections for a specific app.
52+ *
4353 * Optionally you can disable client events so clients cannot send
4454 * messages to each other via the webSockets.
4555 */
@@ -49,6 +59,8 @@ return [
4959 'name' => env('APP_NAME'),
5060 'key' => env('PUSHER_APP_KEY'),
5161 'secret' => env('PUSHER_APP_SECRET'),
62+ 'path' => env('PUSHER_APP_PATH'),
63+ 'capacity' => null,
5264 'enable_client_messages' => false,
5365 'enable_statistics' => true,
5466 ],
@@ -81,6 +93,18 @@ return [
8193 */
8294 'path' => 'laravel-websockets',
8395
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+
84108 'statistics' => [
85109 /*
86110 * This model will be used to store the statistics of the WebSocketsServer.
@@ -89,6 +113,12 @@ return [
89113 */
90114 'model' => \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry::class,
91115
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+
92122 /*
93123 * Here you can specify the interval in seconds at which statistics should be logged.
94124 */
@@ -99,7 +129,7 @@ return [
99129 * the number of days specified here will be deleted.
100130 */
101131 'delete_statistics_older_than_days' => 60,
102-
132+
103133 /*
104134 * Use an DNS resolver to make the requests to the statistics logger
105135 * default is to resolve everything to 127.0.0.1.
@@ -118,18 +148,27 @@ return [
118148 * certificate chain of issuers. The private key also may be contained
119149 * in a separate file specified by local_pk.
120150 */
121- 'local_cert' => null,
151+ 'local_cert' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT', null) ,
122152
123153 /*
124154 * Path to local private key file on filesystem in case of separate files for
125155 * certificate (local_cert) and private key.
126156 */
127- 'local_pk' => null,
157+ 'local_pk' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_PK', null) ,
128158
129159 /*
130160 * Passphrase for your local_cert file.
131161 */
132- 'passphrase' => null
162+ 'passphrase' => env('LARAVEL_WEBSOCKETS_SSL_PASSPHRASE', null),
133163 ],
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,
134173];
135174```
0 commit comments