add https certificate to nginx digital ocean code example Example: nginx letsencrypt sudo certbot renew sudo service nginx restart