do_configure_https {plumberDeploy} | R Documentation |
Add HTTPS to a plumber Droplet
Description
Adds TLS/SSL (HTTPS) to a droplet created using do_provision()
.
Usage
do_configure_https(
droplet,
domain,
email,
termsOfService = FALSE,
force = FALSE,
...
)
Arguments
droplet |
The droplet on which to act. See |
domain |
The domain name associated with this instance. Used to obtain a TLS/SSL certificate. |
email |
Your email address; given only to letsencrypt when requesting a certificate to enable them to contact you about issues with renewal or security. |
termsOfService |
Set to |
force |
If |
... |
additional arguments to pass to |
Details
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.
Value
The DigitalOcean droplet