Step 7 — Add HTTPS with certbot
HTTPS encrypts the site. Skip this step only if you are on a private network and HTTP is enough.
sudo certbot --nginx -d notes.example.com
Follow the prompts. Certbot will edit the nginx file and add a certificate.
Open https://notes.example.com and check that the lock icon is there.
Screenshot
Step 7 — add later: /img/selfhost/ubuntu-nginx-cloud/07-https-certbot.png
Back: Step 6