Skip to content

Commit 91cbdaf

Browse files
committed
update: simplify Certbot command and remove HTTPS verification steps
- Removed the additional domain from the Certbot command for obtaining an SSL certificate, streamlining the process for the primary domain only. - Deleted the steps that verified HTTPS functionality for both the main and www subdomain, as they are no longer necessary in the setup script.
1 parent 0ee0d43 commit 91cbdaf

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

nginx_setup_script.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ sudo systemctl restart nginx
3737
# Step 6: Install Certbot and obtain an SSL certificate
3838
sudo apt install certbot python3-certbot-nginx -y
3939

40-
sudo certbot --nginx -d devcamper.symonmuchemi.com -d www.devcamper.symonmuchemi.com --agree-tos --redirect --non-interactive -m muchemi.developer.com
40+
sudo certbot --nginx -d devcamper.symonmuchemi.com --agree-tos --redirect --non-interactive -m muchemi.developer.com
4141

4242
# Step 7: Ensure Certbot auto-renews the certificate
4343
sudo systemctl enable certbot.timer
44-
45-
# Step 8: Verify HTTPS is working
46-
curl -I https://devcamper.symonmuchemi.com
47-
48-
# Step 8: Verify HTTPS is working
49-
curl -I https://www.devcamper.symonmuchemi.com

0 commit comments

Comments
 (0)