This commit is contained in:
Andras Bacsai
2023-05-15 21:14:45 +02:00
parent 43a4b1c9cb
commit 6910f9c5c7
5 changed files with 64 additions and 56 deletions

View File

@@ -43,6 +43,7 @@ class Form extends Component
if (!$this->server->settings->is_validated) {
$this->server->settings->is_validated = true;
$this->server->settings->save();
$this->emit('serverValidated');
}
}
$this->dockerVersion = instantRemoteProcess(['docker version|head -2|grep -i version'], $this->server, false);

View File

@@ -11,11 +11,16 @@ use Livewire\Component;
class Proxy extends Component
{
protected $listeners = ['serverValidated'];
public Server $server;
public ProxyTypes $selectedProxy = ProxyTypes::TRAEFIK_V2;
public $proxy_settings = null;
public function serverValidated()
{
$this->server->settings->refresh();
}
public function installProxy()
{
$this->saveConfiguration($this->server);