diff --git a/src/Installer/Nginx/NginxSetup.php b/src/Installer/Nginx/NginxSetup.php index 30d2d26..1bc1f56 100644 --- a/src/Installer/Nginx/NginxSetup.php +++ b/src/Installer/Nginx/NginxSetup.php @@ -34,7 +34,7 @@ public function handle() if ($ssl == 'yes') { $this->process([ - "certbot --nginx -n --agree-tos --email=$email -d $fqdn -d www.$fqdn", + "certbot --redirect --nginx -n --agree-tos --email=$email -d $fqdn -d www.$fqdn", "certbot renew --dry-run" ]); }