Add load balancer (#453)

This commit is contained in:
Saeed Vaziry
2025-01-30 23:52:51 +01:00
committed by GitHub
parent 53e20cbc2a
commit 6966f06b1a
54 changed files with 3128 additions and 1833 deletions

View File

@ -27,6 +27,8 @@ class UpdateServerInfo extends Widget implements HasForms
public string $ip;
public ?string $local_ip;
public string $port;
public function mount(Server $server): void
@ -34,6 +36,7 @@ public function mount(Server $server): void
$this->server = $server;
$this->name = $server->name;
$this->ip = $server->ip;
$this->local_ip = $server->local_ip;
$this->port = $server->port;
}
@ -52,6 +55,10 @@ public function form(Form $form): Form
TextInput::make('ip')
->label('IP Address')
->rules(EditServer::rules($this->server)['ip']),
TextInput::make('local_ip')
->label('Local Network IP Address')
->placeholder('10.0.0.1')
->rules(EditServer::rules($this->server)['local_ip']),
TextInput::make('port')
->label('Port')
->rules(EditServer::rules($this->server)['port']),