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(cloudflare): update refresh method to correctly set Cloudflare tunnel status and improve user notification on IP address update
Andras Bacsai23d5ada3b889
diff --git a/app/Livewire/Server/CloudflareTunnel.php b/app/Livewire/Server/CloudflareTunnel.phpindex 0407aa0e42..b2ffa003f1 100644--- a/app/Livewire/Server/CloudflareTunnel.php+++ b/app/Livewire/Server/CloudflareTunnel.php@@ -31,7 +31,8 @@ class CloudflareTunnel extends Componentpublic function refresh(){- $this->mount($this->server->uuid);+ $this->server->refresh();+ $this->isCloudflareTunnelsEnabled = $this->server->settings->is_cloudflare_tunnel;}public function mount(string $server_uuid)@@ -58,7 +59,7 @@ class CloudflareTunnel extends Component$this->server->update(['ip' => $this->server->ip_previous]);$this->dispatch('success', 'Cloudflare Tunnel disabled.<br><br>Manually updated the server IP address to its previous IP address.');} else {- $this->dispatch('success', 'Cloudflare Tunnel disabled. Please update the server IP address to its real IP address in the server settings.');+ $this->dispatch('warning', 'Cloudflare Tunnel disabled. Action required: Update the server IP address to its real IP address in the Advanced settings.');}} catch (\Throwable $e) {return handleError($e, $this);