Skip to content

Commit 81039f9

Browse files
author
Itay Melo Krämer
committed
added list of cetificates
1 parent 8aab2ae commit 81039f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/generateNginxConfig.php

+2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
$certFiles = scandir($certsDir);
44

55
$newConfig = '';
6+
echo PHP_EOL . "\033[32m" . "Certificates : " . "\033[0m" . PHP_EOL;
67
foreach ($certFiles as $cert) {
78
if ($cert == '.' || $cert == '..') continue;
89
if (pathinfo($cert, PATHINFO_EXTENSION) === 'crt') continue;
910
if ($cert === 'default.crt') continue;
1011
$domain = pathinfo($cert, PATHINFO_FILENAME);
12+
echo PHP_EOL . "\033[32m" . "- " . $domain . "\033[0m" . PHP_EOL;
1113
$virtualHost = getenv('VIRTUAL_HOST');
1214
$newConfig .= "
1315
server {

0 commit comments

Comments
 (0)