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: use only ip addresses for servers
Andras Bacsaif943fdc5bed4
diff --git a/app/Http/Livewire/Boarding/Index.php b/app/Http/Livewire/Boarding/Index.phpindex c8a53d26e7..53065918a3 100644--- a/app/Http/Livewire/Boarding/Index.php+++ b/app/Http/Livewire/Boarding/Index.php@@ -164,7 +164,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA=={$this->validate(['remoteServerName' => 'required',- 'remoteServerHost' => 'required',+ 'remoteServerHost' => 'required|ip','remoteServerPort' => 'required|integer','remoteServerUser' => 'required',]);diff --git a/app/Http/Livewire/Server/New/ByIp.php b/app/Http/Livewire/Server/New/ByIp.phpindex f5c8529dee..ec4827af7b 100644--- a/app/Http/Livewire/Server/New/ByIp.php+++ b/app/Http/Livewire/Server/New/ByIp.php@@ -11,13 +11,13 @@ class ByIp extends Component{public $private_keys;public $limit_reached;- public int|null $private_key_id = null;+ public ?int $private_key_id = null;public $new_private_key_name;public $new_private_key_description;public $new_private_key_value;public string $name;- public string|null $description = null;+ public ?string $description = null;public string $ip;public string $user = 'root';public int $port = 22;@@ -26,16 +26,16 @@ class ByIp extends Componentprotected $rules = ['name' => 'required|string','description' => 'nullable|string',- 'ip' => 'required',+ 'ip' => 'required|ip','user' => 'required|string','port' => 'required|integer',];protected $validationAttributes = [- 'name' => 'name',- 'description' => 'description',- 'ip' => 'ip',- 'user' => 'user',- 'port' => 'port',+ 'name' => 'Name',+ 'description' => 'Description',+ 'ip' => 'IP Address',+ 'user' => 'User',+ 'port' => 'Port',];public function mount()diff --git a/resources/views/livewire/boarding/index.blade.php b/resources/views/livewire/boarding/index.blade.phpindex 37ed1cfd85..d9a852067e 100644--- a/resources/views/livewire/boarding/index.blade.php+++ b/resources/views/livewire/boarding/index.blade.php@@ -200,7 +200,7 @@label="Description" id="remoteServerDescription" /></div><div class="flex gap-2">- <x-forms.input required placeholder="Hostname or IP address" label="Hostname or IP Address"+ <x-forms.input required placeholder="127.0.0.1" label="IP Address"id="remoteServerHost" /><x-forms.input required placeholder="Port number of your server. Default is 22."label="Port" id="remoteServerPort" />diff --git a/resources/views/livewire/server/new/by-ip.blade.php b/resources/views/livewire/server/new/by-ip.blade.phpindex 2c84e6cf3e..0a80b14a47 100644--- a/resources/views/livewire/server/new/by-ip.blade.php+++ b/resources/views/livewire/server/new/by-ip.blade.php@@ -11,8 +11,8 @@</div><div class="flex gap-2"><x-forms.input id="ip" label="IP Address" required- helper="Could be IP Address (127.0.0.1) or Domain Name (duckduckgo.com)." />- <x-forms.input id="user" label="User" required />+ helper="An IP Address (127.0.0.1). No domain names." />+ <x-forms.input id="user" label ="User" required /><x-forms.input type="number" id="port" label="Port" required /></div><x-forms.select label="Private Key" id="private_key_id">