fix: add traefik labels no matter if traefik is selected or not

This commit is contained in:
Andras Bacsai
2023-09-24 17:47:43 +02:00
parent e74899611b
commit 0c35726a8d

View File

@@ -216,9 +216,8 @@ function generateLabelsApplication(Application $application, ?ApplicationPreview
} else {
$domains = Str::of(data_get($application, 'fqdn'))->explode(',');
}
if ($application->destination->server->proxy->type === ProxyTypes::TRAEFIK_V2->value) {
// Add Traefik labels no matter which proxy is selected
$labels = $labels->merge(fqdnLabelsForTraefik($domains, $container_name, $application->settings->is_force_https_enabled));
}
}
return $labels->all();
}