Temporary disable cdn services list

This commit is contained in:
Andras Bacsai 2024-03-25 13:28:39 +01:00
parent bcbdee1dcc
commit 2817875461
2 changed files with 4 additions and 9 deletions

View File

@ -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;
}

View File

@ -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,