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: increase polling time for services fix: allow domain as ip address
Andras Bacsai0cd3a3d8488f
diff --git a/app/Http/Livewire/Boarding/Index.php b/app/Http/Livewire/Boarding/Index.phpindex 1b9093be65..1d57f9b0af 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|ip',+ 'remoteServerHost' => 'required','remoteServerPort' => 'required|integer','remoteServerUser' => 'required',]);diff --git a/app/Http/Livewire/Destination/Form.php b/app/Http/Livewire/Destination/Form.phpindex fbce335e7a..4f1bbc693d 100644--- a/app/Http/Livewire/Destination/Form.php+++ b/app/Http/Livewire/Destination/Form.php@@ -16,7 +16,7 @@ class Form extends Componentprotected $validationAttributes = ['destination.name' => 'name','destination.network' => 'network',- 'destination.server.ip' => 'IP Address',+ 'destination.server.ip' => 'IP Address/Domain',];public function submit()diff --git a/app/Http/Livewire/Project/Service/Index.php b/app/Http/Livewire/Project/Service/Index.phpindex fba473250f..2cc0d64045 100644--- a/app/Http/Livewire/Project/Service/Index.php+++ b/app/Http/Livewire/Project/Service/Index.php@@ -13,7 +13,7 @@ class Index extends Componentpublic $databases;public array $parameters;public array $query;- protected $listeners = ["refreshStacks","checkStatus"];+ protected $listeners = ["refreshStacks"];public function render(){return view('livewire.project.service.index');diff --git a/app/Http/Livewire/Project/Service/Navbar.php b/app/Http/Livewire/Project/Service/Navbar.phpindex b8e604ad46..8c17c3307b 100644--- a/app/Http/Livewire/Project/Service/Navbar.php+++ b/app/Http/Livewire/Project/Service/Navbar.php@@ -19,10 +19,6 @@ class Navbar extends Componentreturn view('livewire.project.service.navbar');}- public function checkStatus()- {- $this->emit('checkStatus');- }public function deploy(){$this->service->parse();diff --git a/app/Http/Livewire/Server/Form.php b/app/Http/Livewire/Server/Form.phpindex 816514aebb..e71db00938 100644--- a/app/Http/Livewire/Server/Form.php+++ b/app/Http/Livewire/Server/Form.php@@ -32,7 +32,7 @@ class Form extends Componentprotected $validationAttributes = ['server.name' => 'Name','server.description' => 'Description',- 'server.ip' => 'IP address',+ 'server.ip' => 'IP address/Domain','server.user' => 'User','server.port' => 'Port','server.settings.is_cloudflare_tunnel' => 'Cloudflare Tunnel',@@ -125,7 +125,7 @@ class Form extends Componentif(isCloud() && !isDev()) {$this->validate();$this->validate([- 'server.ip' => 'required|ip',+ 'server.ip' => 'required',]);} else {$this->validate();diff --git a/app/Http/Livewire/Server/New/ByIp.php b/app/Http/Livewire/Server/New/ByIp.phpindex ec4827af7b..66750db283 100644--- a/app/Http/Livewire/Server/New/ByIp.php+++ b/app/Http/Livewire/Server/New/ByIp.php@@ -26,14 +26,14 @@ class ByIp extends Componentprotected $rules = ['name' => 'required|string','description' => 'nullable|string',- 'ip' => 'required|ip',+ 'ip' => 'required','user' => 'required|string','port' => 'required|integer',];protected $validationAttributes = ['name' => 'Name','description' => 'Description',- 'ip' => 'IP Address',+ 'ip' => 'IP Address/Domain','user' => 'User','port' => 'Port',];diff --git a/resources/views/livewire/project/service/index.blade.php b/resources/views/livewire/project/service/index.blade.phpindex 933c89ecd4..ba2bd88776 100644--- a/resources/views/livewire/project/service/index.blade.php+++ b/resources/views/livewire/project/service/index.blade.php@@ -1,4 +1,4 @@-<div x-data="{ raw: true, activeTab: window.location.hash ? window.location.hash.substring(1) : 'service-stack' }" wire:poll.15000ms="checkStatus">+<div x-data="{ raw: true, activeTab: window.location.hash ? window.location.hash.substring(1) : 'service-stack' }" x-init="$wire.checkStatus" wire:poll.10000ms="checkStatus"><livewire:project.service.navbar :service="$service" :parameters="$parameters" :query="$query" /><livewire:project.service.compose-modal :raw="$service->docker_compose_raw" :actual="$service->docker_compose" /><div class="flex h-full pt-6">diff --git a/resources/views/livewire/project/service/navbar.blade.php b/resources/views/livewire/project/service/navbar.blade.phpindex d662f026a0..781ff6c7a4 100644--- a/resources/views/livewire/project/service/navbar.blade.php+++ b/resources/views/livewire/project/service/navbar.blade.php@@ -1,4 +1,4 @@-<div x-init="$wire.checkStatus" wire:poll.2500ms='checkStatus'>+<div><livewire:project.service.modal /><h1>Configuration</h1><x-resources.breadcrumbs :resource="$service" :parameters="$parameters" />diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.phpindex 462d07857c..6f5d0d32b2 100644--- a/resources/views/livewire/server/form.blade.php+++ b/resources/views/livewire/server/form.blade.php@@ -47,7 +47,7 @@label="Is it part of a Swarm cluster?" /> --}}</div><div class="flex flex-col w-full gap-2 lg:flex-row">- <x-forms.input id="server.ip" label="IP Address" required />+ <x-forms.input id="server.ip" label="IP Address/Domain" helper="An IP Address (127.0.0.1) or domain (example.com)." required /><div class="flex gap-2"><x-forms.input id="server.user" label="User" required /><x-forms.input type="number" id="server.port" label="Port" required />diff --git a/resources/views/livewire/server/new/by-ip.blade.php b/resources/views/livewire/server/new/by-ip.blade.phpindex 0a80b14a47..7dfb3a5b04 100644--- a/resources/views/livewire/server/new/by-ip.blade.php+++ b/resources/views/livewire/server/new/by-ip.blade.php@@ -10,8 +10,8 @@<x-forms.input id="description" label="Description" /></div><div class="flex gap-2">- <x-forms.input id="ip" label="IP Address" required- helper="An IP Address (127.0.0.1). No domain names." />+ <x-forms.input id="ip" label="IP Address/Domain" required+ helper="An IP Address (127.0.0.1) or domain (example.com)." /><x-forms.input id="user" label ="User" required /><x-forms.input type="number" id="port" label="Port" required /></div>