do_configure_https: Add HTTPS to a plumber Droplet

Description Usage Arguments Details Value

View source: R/digital-ocean.R

Description

Adds TLS/SSL (HTTPS) to a droplet created using do_provision().

Usage

1
2
3
4
5
6
7
8
do_configure_https(
  droplet,
  domain,
  email,
  termsOfService = FALSE,
  force = FALSE,
  ...
)

Arguments

droplet

The droplet on which to act. See analogsea::droplet().

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 TRUE to agree to the letsencrypt subscriber agreement. At the time of writing, the current version is available here. Must be set to true to obtain a certificate through letsencrypt.

force

If FALSE, will abort if it believes that the given domain name is not yet pointing at the appropriate IP address for this droplet. If TRUE, will ignore this check and attempt to proceed regardless.

...

additional arguments to pass to analogsea::droplet_ssh()

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


plumberDeploy documentation built on March 22, 2021, 5:07 p.m.