mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
Raise the Reverb max request size and store the remembered list view cookies unencrypted, so the WebSocket handshake no longer fails with 413 and live updates (like proxy restart logs) reach the browser.
28 lines
729 B
PHP
28 lines
729 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
|
|
|
|
class EncryptCookies extends Middleware
|
|
{
|
|
/**
|
|
* The names of the cookies that should not be encrypted.
|
|
*
|
|
* @var array<int, string>
|
|
*/
|
|
protected $except = [
|
|
//
|
|
];
|
|
|
|
/**
|
|
* The remembered list views (RemembersCanvasView) hold only an allow-listed view name.
|
|
* Encryption makes each of these per-user, per-page cookies about 330 bytes, and the
|
|
* browser sends all of them on the Reverb WebSocket handshake too.
|
|
*/
|
|
public function isDisabled($name)
|
|
{
|
|
return parent::isDisabled($name) || preg_match('/^coolify_\d+_[a-z_]+_view$/', $name) === 1;
|
|
}
|
|
}
|