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
Add generate_unique_uuid parameter to fqdnLabelsForTraefik function
Andras Bacsai94ad56fc96cf
diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.phpindex a70c85a72b..a087c92c5f 100644--- a/bootstrap/helpers/docker.php+++ b/bootstrap/helpers/docker.php@@ -8,6 +8,7 @@ use App\Models\ServiceApplication;use Illuminate\Support\Collection;use Illuminate\Support\Str;use Spatie\Url\Url;+use Visus\Cuid2\Cuid2;function getCurrentApplicationContainerStatus(Server $server, int $id, ?int $pullRequestId = null, ?bool $includePullrequests = false): Collection{@@ -272,7 +273,7 @@ function fqdnLabelsForCaddy(string $network, string $uuid, Collection $domains,}return $labels->sort();}-function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_https_enabled = false, $onlyPort = null, ?Collection $serviceLabels = null, ?bool $is_gzip_enabled = true, ?bool $is_stripprefix_enabled = true, ?string $service_name = null)+function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_https_enabled = false, $onlyPort = null, ?Collection $serviceLabels = null, ?bool $is_gzip_enabled = true, ?bool $is_stripprefix_enabled = true, ?string $service_name = null, bool $generate_unique_uuid = false){$labels = collect([]);$labels->push('traefik.enable=true');@@ -313,7 +314,9 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_}foreach ($domains as $loop => $domain) {try {- // $uuid = new Cuid2(7);+ if ($generate_unique_uuid) {+ $uuid = new Cuid2(7);+ }$url = Url::fromString($domain);$host = $url->getHost();$path = $url->getPath();diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex b2c34900e4..0161b8c95c 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -1620,7 +1620,8 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$serviceLabels = $serviceLabels->merge(fqdnLabelsForTraefik(uuid: $resource->uuid,domains: $fqdns,- serviceLabels: $serviceLabels+ serviceLabels: $serviceLabels,+ generate_unique_uuid: $resource->build_pack === 'dockercompose'));$serviceLabels = $serviceLabels->merge(fqdnLabelsForCaddy(network: $resource->destination->network,diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.phpindex ad4e74e0c5..5faf9bccd5 100644--- a/resources/views/livewire/project/shared/get-logs.blade.php+++ b/resources/views/livewire/project/shared/get-logs.blade.php@@ -77,7 +77,7 @@stroke-width="2" d="M12 5v14m4-4l-4 4m-4-4l4 4" /></svg></button>- <button title="Fullscreen" x-show="!fullscreen" class="absolute top-6 right-4"+ <button title="Fullscreen" x-show="!fullscreen" class="absolute top-5 right-1"x-on:click="makeFullscreen"><svg class="icon" viewBox="0 0 24 24"xmlns="http://www.w3.org/2000/svg"><g fill="none">