Description Usage Arguments Details Value
View source: R/digital-ocean.R
Adds TLS/SSL (HTTPS) to a droplet created using do_provision()
.
1 2 3 4 5 6 7 8 | do_configure_https(
droplet,
domain,
email,
termsOfService = FALSE,
force = FALSE,
...
)
|
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 |
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.
The DigitalOcean droplet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.