Fix: Cert-Prüfung via renewal/-Verzeichnis (www-data-lesbar) statt live/
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main v1.1.296
parent
8fa28a4d84
commit
4fc31726be
|
|
@ -44,8 +44,11 @@ class MigrateEnvReverb extends Command
|
|||
return self::SUCCESS;
|
||||
}
|
||||
|
||||
$scheme = file_exists("/etc/letsencrypt/live/{$appHost}/fullchain.pem") ? 'https' : 'http';
|
||||
$port = $scheme === 'https' ? '443' : '80';
|
||||
$hasCert = file_exists("/etc/letsencrypt/renewal/{$appHost}.conf")
|
||||
|| is_dir("/etc/letsencrypt/live/{$appHost}")
|
||||
|| file_exists("/etc/letsencrypt/live/{$appHost}/fullchain.pem");
|
||||
$scheme = $hasCert ? 'https' : 'http';
|
||||
$port = $hasCert ? '443' : '80';
|
||||
|
||||
$fixes = [
|
||||
'REVERB_HOST' => '${APP_HOST}',
|
||||
|
|
|
|||
Loading…
Reference in New Issue