From 4fc31726be4d6ba4c9b4bb8299701781ad634278 Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 26 Apr 2026 18:10:32 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Cert-Pr=C3=BCfung=20via=20renewal/-Verze?= =?UTF-8?q?ichnis=20(www-data-lesbar)=20statt=20live/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- app/Console/Commands/MigrateEnvReverb.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/MigrateEnvReverb.php b/app/Console/Commands/MigrateEnvReverb.php index f91b217..bbb06ec 100644 --- a/app/Console/Commands/MigrateEnvReverb.php +++ b/app/Console/Commands/MigrateEnvReverb.php @@ -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}',