Learn R Programming

buoyant (version 0.1.0)

do_forward: Forward root requests to an application

Description

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

Usage

do_forward(droplet, path, ...)

Value

The DigitalOcean droplet

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().

Examples

Run this code
if (FALSE) {
  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
}

Run the code above in your browser using DataLab