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
style: linting
Lorenzo Migliorerobe6d74a6a3c3
diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.phpindex fa2a19c2a6..355127130f 100644--- a/bootstrap/helpers/docker.php+++ b/bootstrap/helpers/docker.php@@ -536,7 +536,7 @@ function generateLabelsApplication(Application $application, ?ApplicationPreviewif ($pull_request_id === 0) {if ($application->fqdn) {$domains = str(data_get($application, 'fqdn'))->explode(',');- switch($application->destination->server->proxyType()) {+ switch ($application->destination->server->proxyType()) {case ProxyTypes::TRAEFIK_V2->value:$labels = $labels->merge(fqdnLabelsForTraefik(uuid: $appUuid,@@ -547,7 +547,7 @@ function generateLabelsApplication(Application $application, ?ApplicationPreviewis_stripprefix_enabled: $application->isStripprefixEnabled(),redirect_direction: $application->redirect));- break;+ break;case ProxyTypes::CADDY->value:$labels = $labels->merge(fqdnLabelsForCaddy(network: $application->destination->network,@@ -559,7 +559,7 @@ function generateLabelsApplication(Application $application, ?ApplicationPreviewis_stripprefix_enabled: $application->isStripprefixEnabled(),redirect_direction: $application->redirect));- break;+ break;}}} else {@@ -569,7 +569,7 @@ function generateLabelsApplication(Application $application, ?ApplicationPreview$domains = collect([]);}- switch($application->destination->server->proxyType()) {+ switch ($application->destination->server->proxyType()) {case ProxyTypes::TRAEFIK_V2->value:$labels = $labels->merge(fqdnLabelsForTraefik(uuid: $appUuid,diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex 9600b13d2d..a909b28e92 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -1306,7 +1306,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$serviceLabels = $serviceLabels->merge($defaultLabels);if (! $isDatabase && $fqdns->count() > 0) {if ($fqdns) {- switch($resource->destination->server->proxyType()) {+ switch ($resource->destination->server->proxyType()) {case ProxyTypes::TRAEFIK_V2->value:$serviceLabels = $serviceLabels->merge(fqdnLabelsForTraefik(uuid: $resource->uuid,