Skip to content

Commit c4652c0

Browse files
author
Itay Melo Krämer
committed
fix
1 parent 81039f9 commit c4652c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/generateNginxConfig.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
foreach ($certFiles as $cert) {
88
if ($cert == '.' || $cert == '..') continue;
99
if (pathinfo($cert, PATHINFO_EXTENSION) === 'crt') continue;
10-
if ($cert === 'default.crt') continue;
1110
$domain = pathinfo($cert, PATHINFO_FILENAME);
1211
echo PHP_EOL . "\033[32m" . "- " . $domain . "\033[0m" . PHP_EOL;
13-
$virtualHost = getenv('VIRTUAL_HOST');
12+
$virtualHost = getenv('VIRTUAL_HOST') ?: throw new \Exception('env VIRTUAL_HOST is required');
1413
$newConfig .= "
1514
server {
1615
server_name *.$domain;

0 commit comments

Comments
 (0)