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: add cf tunnel to boarding server view
Andras Bacsaif952512615b3
diff --git a/app/Http/Livewire/Boarding/Index.php b/app/Http/Livewire/Boarding/Index.phpindex 67221d0c65..19c51d5ce7 100644--- a/app/Http/Livewire/Boarding/Index.php+++ b/app/Http/Livewire/Boarding/Index.php@@ -32,6 +32,7 @@ class Index extends Componentpublic ?int $remoteServerPort = 22;public ?string $remoteServerUser = 'root';public bool $isSwarmManager = false;+ public bool $isCloudflareTunnel = false;public ?Server $createdServer = null;public Collection $projects;@@ -184,6 +185,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA=='team_id' => currentTeam()->id,]);$this->createdServer->settings->is_swarm_manager = $this->isSwarmManager;+ $this->createdServer->settings->is_cloudflare_tunnel = $this->isCloudflareTunnel;$this->createdServer->settings->save();$this->createdServer->addInitialNetwork();$this->validateServer();@@ -200,6 +202,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==]);} catch (\Throwable $e) {$this->serverReachable = false;+ $this->createdServer->delete();return handleError(error: $e, livewire: $this);}diff --git a/app/Models/Server.php b/app/Models/Server.phpindex f65ecfb10d..439bba9905 100644--- a/app/Models/Server.php+++ b/app/Models/Server.php@@ -87,8 +87,6 @@ class Server extends BaseModelreturn $this->hasOne(ServerSetting::class);}public function addInitialNetwork() {- ray($this->id);-if ($this->id === 0) {if ($this->isSwarm()) {SwarmDocker::create([diff --git a/resources/views/livewire/boarding/index.blade.php b/resources/views/livewire/boarding/index.blade.phpindex 98a2c772ad..ea14faae1e 100644--- a/resources/views/livewire/boarding/index.blade.php+++ b/resources/views/livewire/boarding/index.blade.php@@ -207,10 +207,11 @@placeholder="Username to connect to your server. Default is root." label="Username"id="remoteServerUser" /></div>- {{-- <div class="w-64">- <x-forms.checkbox type="checkbox" id="isSwarmManager"- label="Is it a Swarm Manager?" />- </div> --}}+ <div class="w-64">+ <x-forms.checkbox+ helper="If you are using Cloudflare Tunnels, enable this. It will proxy all ssh requests to your server through Cloudflare.<br><span class='text-warning'>Coolify does not install/setup Cloudflare (cloudflared) on your server.</span>"+ id="isCloudflareTunnel" label="Cloudflare Tunnel" />+ </div><x-forms.button type="submit">Check Connection</x-forms.button></form></x-slot:actions>