mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-18 05:20:43 +00:00
[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:
@@ -102,13 +102,22 @@ class Create extends Component
|
||||
}
|
||||
});
|
||||
}
|
||||
$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();
|
||||
|
||||
Reference in New Issue
Block a user