An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: add traefik labels no matter if traefik is selected or not
Andras Bacsai0c35726a8d17
diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.phpindex 6d8e2e0246..27fa96fb88 100644--- a/bootstrap/helpers/docker.php+++ b/bootstrap/helpers/docker.php@@ -147,7 +147,7 @@ function fqdnLabelsForTraefik(Collection $domains, $container_name, $is_force_ht{$labels = collect([]);$labels->push('traefik.enable=true');- foreach($domains as $domain) {+ foreach ($domains as $domain) {$url = Url::fromString($domain);$host = $url->getHost();$path = $url->getPath();@@ -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) {- $labels = $labels->merge(fqdnLabelsForTraefik($domains, $container_name, $application->settings->is_force_https_enabled));- }+ // 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();}