Adds TLS/SSL (HTTPS) to a droplet created using
do_configure_https( droplet, domain, email, termsOfService = FALSE, force = FALSE )
The droplet on which to act. See
The domain name associated with this instance. Used to obtain a TLS/SSL certificate.
Your email address; given only to letsencrypt when requesting a certificate to enable them to contact you about issues with renewal or security.
In order to get a TLS/SSL certificate, you need to point a domain name to the IP address associated with your droplet. If you don't already have a domain name, you can register one here. Point a (sub)domain to the IP address associated with your plumber droplet before calling this function. These changes may take a few minutes or hours to propagate around the Internet, but once complete you can then execute this function with the given domain to be granted a TLS/SSL certificate for that domain.
Obtains a free TLS/SSL certificate from letsencrypt and installs it in nginx. It also configures nginx to route all unencrypted HTTP traffic (port 80) to HTTPS. Your TLS certificate will be automatically renewed and deployed. It also opens port 443 in the firewall to allow incoming HTTPS traffic.
Historically, HTTPS certificates required payment in advance. If you appreciate this service, consider donating to the letsencrypt project.