From 281787546111237131ca36edd385d17768f74116 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 25 Mar 2024 13:28:39 +0100 Subject: [PATCH] Temporary disable cdn services list --- bootstrap/helpers/shared.php | 9 +-------- config/constants.php | 4 +++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index bc73b3968..bfff8098a 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -433,7 +433,7 @@ function sslip(Server $server) function getServiceTemplates() { - if (isDev()) { + if (!isDev()) { $services = File::get(base_path('templates/service-templates.json')); $services = collect(json_decode($services))->sortKeys(); } else { @@ -448,13 +448,6 @@ function getServiceTemplates() $services = collect([]); } } - // $version = config('version'); - // $services = $services->map(function ($service) use ($version) { - // if (version_compare($version, data_get($service, 'minVersion', '0.0.0'), '<')) { - // $service->disabled = true; - // } - // return $service; - // }); return $services; } diff --git a/config/constants.php b/config/constants.php index 7bab10a56..54c451310 100644 --- a/config/constants.php +++ b/config/constants.php @@ -19,7 +19,9 @@ ], ], 'services' => [ - 'official' => 'https://cdn.coollabs.io/coolify/service-templates.json', + // Temporary disabled until cache is implemented + // 'official' => 'https://cdn.coollabs.io/coolify/service-templates.json', + 'official' => 'https://raw.githubusercontent.com/coollabsio/coolify/main/templates/service-templates.json', ], 'limits' => [ 'trial_period' => 0,