chore: rename ca crt folder to ssl
This commit is contained in:
		@@ -24,9 +24,10 @@ class InstallDocker
 | 
			
		||||
            $serverCert = SslHelper::generateSslCertificate(
 | 
			
		||||
                commonName: 'Coolify CA Certificate',
 | 
			
		||||
                serverId: $server->id,
 | 
			
		||||
                isCaCertificate: true,
 | 
			
		||||
                validityDays: 15 * 365
 | 
			
		||||
            );
 | 
			
		||||
            $serverCertPath = config('constants.coolify.base_config_path').'/ca/';
 | 
			
		||||
            $serverCertPath = config('constants.coolify.base_config_path').'/ssl/';
 | 
			
		||||
 | 
			
		||||
            $commands = collect([
 | 
			
		||||
                "mkdir -p $serverCertPath",
 | 
			
		||||
 
 | 
			
		||||
@@ -13,16 +13,17 @@ class CaSslCertSeeder extends Seeder
 | 
			
		||||
    {
 | 
			
		||||
        Server::chunk(200, function ($servers) {
 | 
			
		||||
            foreach ($servers as $server) {
 | 
			
		||||
                $existingCert = SslCertificate::where('server_id', $server->id)->first();
 | 
			
		||||
                $existingCert = SslCertificate::where('server_id', $server->id)->where('is_ca_certificate', true)->first();
 | 
			
		||||
 | 
			
		||||
                if (! $existingCert) {
 | 
			
		||||
                    $serverCert = SslHelper::generateSslCertificate(
 | 
			
		||||
                        commonName: 'Coolify CA Certificate',
 | 
			
		||||
                        serverId: $server->id,
 | 
			
		||||
                        isCaCertificate: true,
 | 
			
		||||
                        validityDays: 15 * 365
 | 
			
		||||
                    );
 | 
			
		||||
 | 
			
		||||
                    $serverCertPath = config('constants.coolify.base_config_path').'/ca/';
 | 
			
		||||
                    $serverCertPath = config('constants.coolify.base_config_path').'/ssl/';
 | 
			
		||||
 | 
			
		||||
                    $commands = collect([
 | 
			
		||||
                        "mkdir -p $serverCertPath",
 | 
			
		||||
 
 | 
			
		||||
@@ -62,7 +62,7 @@ if [ "$WARNING_SPACE" = true ]; then
 | 
			
		||||
    sleep 5
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
mkdir -p /data/coolify/{source,ssh,applications,databases,backups,services,proxy,ca,webhooks-during-maintenance,sentinel}
 | 
			
		||||
mkdir -p /data/coolify/{source,ssh,applications,databases,backups,services,proxy,ssl,webhooks-during-maintenance,sentinel}
 | 
			
		||||
mkdir -p /data/coolify/ssh/{keys,mux}
 | 
			
		||||
mkdir -p /data/coolify/proxy/dynamic
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user