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: traefik dashboard ip
Andras Bacsai2639bf92add8
diff --git a/app/Http/Livewire/Server/Proxy/Deploy.php b/app/Http/Livewire/Server/Proxy/Deploy.phpindex 44ff4b917e..39995e0776 100644--- a/app/Http/Livewire/Server/Proxy/Deploy.php+++ b/app/Http/Livewire/Server/Proxy/Deploy.php@@ -12,10 +12,17 @@ class Deploy extends Componentpublic Server $server;public bool $traefikDashboardAvailable = false;public ?string $currentRoute = null;+ public ?string $serverIp = null;+protected $listeners = ['proxyStatusUpdated', 'traefikDashboardAvailable', 'serverRefresh' => 'proxyStatusUpdated', "checkProxy", "startProxy"];public function mount(){+ if ($this->server->id === 0) {+ $this->serverIp = base_ip();+ } else {+ $this->serverIp = $this->server->ip;+ }$this->currentRoute = request()->route()->getName();}public function traefikDashboardAvailable(bool $data)@@ -26,7 +33,11 @@ class Deploy extends Component{$this->server->refresh();}- public function checkProxy() {+ public function ip()+ {+ }+ public function checkProxy()+ {try {CheckProxy::run($this->server);$this->emit('startProxyPolling');diff --git a/resources/views/livewire/server/proxy/deploy.blade.php b/resources/views/livewire/server/proxy/deploy.blade.phpindex 933133408f..afb1e25e56 100644--- a/resources/views/livewire/server/proxy/deploy.blade.php+++ b/resources/views/livewire/server/proxy/deploy.blade.php@@ -12,7 +12,7 @@<div class="flex gap-4">@if ($currentRoute === 'server.proxy' && $traefikDashboardAvailable)<button>- <a target="_blank" href="http://{{ $server->ip }}:8080">+ <a target="_blank" href="http://{{ $serverIp }}:8080">Traefik Dashboard<x-external-link /></a>