From cb80341a78308d2c4a36b538294bd0c128d19240 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 2 Jan 2024 17:22:44 +0100 Subject: [PATCH] Fix customLabels assignment when proxyType is TRAEFIK_V2 --- app/Livewire/Project/Application/General.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.php index 798794e49..f54a46e09 100644 --- a/app/Livewire/Project/Application/General.php +++ b/app/Livewire/Project/Application/General.php @@ -116,7 +116,7 @@ public function mount() } $this->isConfigurationChanged = $this->application->isConfigurationChanged(); $this->customLabels = $this->application->parseContainerLabels(); - if (!$this->customLabels) { + if (!$this->customLabels && $this->application->destination->server->proxyType() === 'TRAEFIK_V2') { $this->customLabels = str(implode(",", generateLabelsApplication($this->application)))->replace(',', "\n"); $this->application->custom_labels = base64_encode($this->customLabels); $this->application->save(); @@ -206,7 +206,7 @@ public function updatedApplicationFqdn() public function submit($showToaster = true) { try { - if (!$this->customLabels) { + if (!$this->customLabels && $this->application->destination->server->proxyType() === 'TRAEFIK_V2') { $this->customLabels = str(implode(",", generateLabelsApplication($this->application)))->replace(',', "\n"); $this->application->custom_labels = base64_encode($this->customLabels); $this->application->save();