chore: rename ca crt folder to ssl

This commit is contained in:
peaklabs-dev
2025-02-03 21:42:28 +01:00
parent 30343b0049
commit a1e650e699
3 changed files with 6 additions and 4 deletions

View File

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