diff --git a/app/Http/Livewire/Server/Proxy/Deploy.php b/app/Http/Livewire/Server/Proxy/Deploy.php index 44ff4b917..39995e077 100644 --- a/app/Http/Livewire/Server/Proxy/Deploy.php +++ b/app/Http/Livewire/Server/Proxy/Deploy.php @@ -12,10 +12,17 @@ class Deploy extends Component public 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.php index 933133408..afb1e25e5 100644 --- a/resources/views/livewire/server/proxy/deploy.blade.php +++ b/resources/views/livewire/server/proxy/deploy.blade.php @@ -12,7 +12,7 @@
@if ($currentRoute === 'server.proxy' && $traefikDashboardAvailable)