We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a18b5ca commit 924f664Copy full SHA for 924f664
src/generateNginxConfig.php
@@ -6,8 +6,8 @@
6
echo PHP_EOL . "\033[32m" . "Certificates : " . "\033[0m" . PHP_EOL;
7
foreach ($certFiles as $cert) {
8
if ($cert == '.' || $cert == '..') continue;
9
- if (pathinfo($cert, PATHINFO_EXTENSION) === 'crt') continue;
10
- if ($cert === 'default.key') continue;
+ if (pathinfo($cert, PATHINFO_EXTENSION) === 'key') continue;
+ if ($cert === 'default.crt') continue;
11
$domain = pathinfo($cert, PATHINFO_FILENAME);
12
echo PHP_EOL . "\033[32m" . "- " . $domain . "\033[0m" . PHP_EOL;
13
$virtualHost = getenv('VIRTUAL_HOST') ?: throw new \Exception('env VIRTUAL_HOST is required');
0 commit comments