Skip to contents

Configures nginx to forward requests from the root path (/) to a specific application.

Usage

do_forward(droplet, path, ...)

Arguments

droplet

The droplet on which to act.

path

The application path to forward root requests to.

...

additional arguments to pass to analogsea::droplet_ssh().

Value

The DigitalOcean droplet

Examples

if (FALSE) { # \dontrun{
  droplet <- analogsea::droplet(123456)

  # Forward root URL to an application
  do_forward(droplet, "myapp")

  # Now visiting http://your-ip/ will redirect to http://your-ip/myapp
} # }