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
boban 2026-04-26 18:10:32 +02:00
parent 8fa28a4d84
commit 4fc31726be
1 changed files with 5 additions and 2 deletions

View File

@ -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}',