diff --git a/app/Factories/NginxVhostFactory.php b/app/Factories/NginxVhostFactory.php index 2796444..eed07cc 100644 --- a/app/Factories/NginxVhostFactory.php +++ b/app/Factories/NginxVhostFactory.php @@ -137,9 +137,7 @@ class NginxVhostFactory ->addLineBreak('-'); if ($vhost['ssl'] === true) { - - var_dump($vhost); die(); - + if ($vhost['ssl_certificate_exists']) { $builder->addStaticItem('expired_at: '.$vhost['ssl_certificate_expired_at']); } else { diff --git a/app/Helpers/NginxVhostHelper.php b/app/Helpers/NginxVhostHelper.php index c2b934d..0662a02 100644 --- a/app/Helpers/NginxVhostHelper.php +++ b/app/Helpers/NginxVhostHelper.php @@ -83,6 +83,8 @@ class NginxVhostHelper if (count($matches) >= 2) { $result['ssl'] = true; + var_dump($matches); die(); + if (file_exists($matches[0]) && file_exists($matches[1])) { $result['ssl_certificate_exists'] = true; }