From ab9ca5a1d2e2a8ee4a57f68acafcd53ef5a27c22 Mon Sep 17 00:00:00 2001 From: poppabear8883 Date: Wed, 15 Aug 2018 11:24:18 -0400 Subject: [PATCH] fix: Redirect all traffic to https instead of http Closes #12 --- src/Installer/Nginx/NginxSetup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ]); }