Lets make http://my-project.your-domain.tld have an SSL certificate and auto-forward all HTTP traffic to HTTPS
It is important that your domain name has fully propagated across the internet before attempting this step since the CertBot servers will try to validate your domain from different locations in the world.
DNS Checker works well for checking global DNS propagation. Enter your domain and select the A option.
These instructions are for Nginx running on Ubuntu 20.04. For different operating systems and web servers, check the Certbot website.
Ensure the snapd package manager is up-to-date.
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
Prepare the CertBot command
sudo ln -s /snap/bin/certbot /usr/bin/certbot
Now we can run CertBot and follow the prompts.
sudo certbot --nginx
Now visit the https version of your URL.
You can also visit the example that was created in the video.