From 81039f98e66086150c537ad4babc6fedd672d7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Itay=20Melo=20Kr=C3=A4mer?= Date: Thu, 5 Sep 2024 08:21:42 +0200 Subject: [PATCH] added list of cetificates --- src/generateNginxConfig.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generateNginxConfig.php b/src/generateNginxConfig.php index fba6272..8a93804 100644 --- a/src/generateNginxConfig.php +++ b/src/generateNginxConfig.php @@ -3,11 +3,13 @@ $certFiles = scandir($certsDir); $newConfig = ''; +echo PHP_EOL . "\033[32m" . "Certificates : " . "\033[0m" . PHP_EOL; 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'); $newConfig .= " server {