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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Add Unleash service configuration to Service model
Andras Bacsai8a8000c80a95
diff --git a/app/Models/Service.php b/app/Models/Service.phpindex bcffa0863c..f5a47ac451 100644--- a/app/Models/Service.php+++ b/app/Models/Service.php@@ -150,6 +150,29 @@ class Service extends BaseModelforeach ($applications as $application) {$image = str($application->image)->before(':')->value();switch ($image) {+ case str($image)?->contains('unleash-server'):+ $data = collect([]);+ $admin_password = $this->environment_variables()->where('key', 'SERVICE_PASSWORD_UNLEASH')->first();+ $data = $data->merge([+ 'Admin User' => [+ 'key' => 'SERVICE_USER_UNLEASH',+ 'value' => 'admin',+ 'readonly' => true,+ 'rules' => 'required',+ ],+ ]);+ if ($admin_password) {+ $data = $data->merge([+ 'Admin Password' => [+ 'key' => 'SERVICE_PASSWORD_UNLEASH',+ 'value' => data_get($admin_password, 'value'),+ 'rules' => 'required',+ 'isPassword' => true,+ ],+ ]);+ }+ $fields->put('Unleash', $data);+ break;case str($image)?->contains('grafana'):$data = collect([]);$admin_password = $this->environment_variables()->where('key', 'SERVICE_PASSWORD_GRAFANA')->first();