diff --git a/src/generateNginxConfig.php b/src/generateNginxConfig.php index c01b05f..06dc515 100644 --- a/src/generateNginxConfig.php +++ b/src/generateNginxConfig.php @@ -6,8 +6,8 @@ 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.key') continue; + if (pathinfo($cert, PATHINFO_EXTENSION) === 'key') 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') ?: throw new \Exception('env VIRTUAL_HOST is required');