[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
This commit is contained in:
ShadowArcanist 2025-11-27 07:29:31 +01:00
parent e5c7459284
commit bc997370f7

View file

@ -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();