From c4652c0b638e1f840abda26dc2b9ff6f086d0a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Itay=20Melo=20Kr=C3=A4mer?= Date: Thu, 5 Sep 2024 09:41:46 +0200 Subject: [PATCH] fix --- src/generateNginxConfig.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/generateNginxConfig.php b/src/generateNginxConfig.php index 8a93804..e3e5ddc 100644 --- a/src/generateNginxConfig.php +++ b/src/generateNginxConfig.php @@ -7,10 +7,9 @@ foreach ($certFiles as $cert) { if ($cert == '.' || $cert == '..') continue; if (pathinfo($cert, PATHINFO_EXTENSION) === 'crt') continue; - if ($cert === 'default.crt') continue; $domain = pathinfo($cert, PATHINFO_FILENAME); echo PHP_EOL . "\033[32m" . "- " . $domain . "\033[0m" . PHP_EOL; - $virtualHost = getenv('VIRTUAL_HOST'); + $virtualHost = getenv('VIRTUAL_HOST') ?: throw new \Exception('env VIRTUAL_HOST is required'); $newConfig .= " server { server_name *.$domain;