powered by
Configures nginx to forward requests from the root path (/) to a specific application.
do_forward(droplet, path, ...)
The DigitalOcean droplet
The droplet on which to act.
The application path to forward root requests to.
additional arguments to pass to analogsea::droplet_ssh().
analogsea::droplet_ssh()
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