From bc997370f733bd12bde9f1033e4796e62982f180 Mon Sep 17 00:00:00 2001 From: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com> Date: Thu, 27 Nov 2025 07:29:31 +0100 Subject: [PATCH] [service] fixed beszel realtime feature not working Without this fix users have to manually uncheck Enable Gzip Compression option for the dashboard realtime feature to work --- app/Livewire/Project/Resource/Create.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/app/Livewire/Project/Resource/Create.php b/app/Livewire/Project/Resource/Create.php index cdf95d2e4..e2d22b4fd 100644 --- a/app/Livewire/Project/Resource/Create.php +++ b/app/Livewire/Project/Resource/Create.php @@ -102,13 +102,22 @@ public function mount() } }); } - $service->parse(isNew: true); + $service->parse(isNew: true); - return redirect()->route('project.service.configuration', [ - 'service_uuid' => $service->uuid, - 'environment_uuid' => $environment->uuid, - 'project_uuid' => $project->uuid, - ]); + // For Beszel service disable gzip (fixes realtime not working issue) + if ($oneClickServiceName === 'beszel') { + $appService = $service->applications()->whereName('beszel')->first(); + if ($appService) { + $appService->is_gzip_enabled = false; + $appService->save(); + } + } + + return redirect()->route('project.service.configuration', [ + 'service_uuid' => $service->uuid, + 'environment_uuid' => $environment->uuid, + 'project_uuid' => $project->uuid, + ]); } } $this->type = $type->value();