Temporary disable cdn services list
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,9 @@ return [
 | 
			
		||||
        ],
 | 
			
		||||
    ],
 | 
			
		||||
    '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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user