Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

[service] fixed beszel realtime feature not working

ShadowArcanistbc997370f733
diff --git a/app/Livewire/Project/Resource/Create.php b/app/Livewire/Project/Resource/Create.php
index cdf95d2e4b..e2d22b4fdb 100644
--- a/app/Livewire/Project/Resource/Create.php
+++ b/app/Livewire/Project/Resource/Create.php
@@ -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();