feat(navbar): add Traefik dashboard availability check and server IP handling; refactor dynamic configurations loading

This commit is contained in:
Andras Bacsai
2025-06-06 18:50:32 +02:00
parent ddcb14500d
commit 2576e868b5
6 changed files with 42 additions and 20 deletions

View File

@@ -107,11 +107,6 @@ class Proxy extends Component
{
try {
$this->proxy_settings = CheckConfiguration::run($this->server);
if (str($this->proxy_settings)->contains('--api.dashboard=true') && str($this->proxy_settings)->contains('--api.insecure=true')) {
$this->dispatch('traefikDashboardAvailable', true);
} else {
$this->dispatch('traefikDashboardAvailable', false);
}
} catch (\Throwable $e) {
return handleError($e, $this);
}