We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81039f9 commit c4652c0Copy full SHA for c4652c0
src/generateNginxConfig.php
@@ -7,10 +7,9 @@
7
foreach ($certFiles as $cert) {
8
if ($cert == '.' || $cert == '..') continue;
9
if (pathinfo($cert, PATHINFO_EXTENSION) === 'crt') continue;
10
- 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');
+ $virtualHost = getenv('VIRTUAL_HOST') ?: throw new \Exception('env VIRTUAL_HOST is required');
14
$newConfig .= "
15
server {
16
server_name *.$domain;
0 commit comments