[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:
parent
e5c7459284
commit
bc997370f7
1 changed files with 15 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue