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
Fix: remote servers with port and user
peaklabs-devd378bb94bea4
diff --git a/app/Livewire/Boarding/Index.php b/app/Livewire/Boarding/Index.phpindex 9503da499a..514f00c3a6 100644--- a/app/Livewire/Boarding/Index.php+++ b/app/Livewire/Boarding/Index.php@@ -247,11 +247,12 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==public function saveServer(){$this->validate([- 'remoteServerName' => 'required',- 'remoteServerHost' => 'required',+ 'remoteServerName' => 'required|string',+ 'remoteServerHost' => 'required|string','remoteServerPort' => 'required|integer',- 'remoteServerUser' => 'required',+ 'remoteServerUser' => 'required|string',]);+$this->privateKey = formatPrivateKey($this->privateKey);$foundServer = Server::whereIp($this->remoteServerHost)->first();if ($foundServer) {@@ -379,8 +380,8 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA=='name' => $this->remoteServerName,'port' => $this->remoteServerPort,'user' => $this->remoteServerUser,- 'timezone' => 'UTC',- ]);+ 'timezone' => 'UTC',+ ]);$this->validateServer();}diff --git a/app/Models/Server.php b/app/Models/Server.phpindex d30cdc9d61..46536ed47b 100644--- a/app/Models/Server.php+++ b/app/Models/Server.php@@ -113,8 +113,13 @@ class Server extends BaseModel];protected $fillable = [+ 'name',+ 'ip','port','user',+ 'description',+ 'private_key_id',+ 'team_id',];protected $guarded = [];@@ -148,11 +153,7 @@ class Server extends BaseModelpublic function settings(){- return $this->hasOne(ServerSetting::class)->withDefault([- 'force_disabled' => false,- 'is_reachable' => false,- 'is_usable' => false,- ]);+ return $this->hasOne(ServerSetting::class);}public function setupDefault404Redirect()