rc: Rclone-WebUI integration with rclone

This adds experimental support for web gui integration so that rclone can fetch and run a web based GUI using the --rc-web-ui and related flags.

It downloads and caches a webui zip file which it then unpacks and opens in the browser.
This commit is contained in:
Chaitanya Bankanhal 2019-08-04 11:32:37 +00:00 committed by Nick Craig-Wood
parent 0386d22cc9
commit 84e2806c4b
5 changed files with 227 additions and 11 deletions

View file

@ -17,11 +17,15 @@ import (
// Options contains options for the remote control server
type Options struct {
HTTPOptions httplib.Options
Enabled bool // set to enable the server
Serve bool // set to serve files from remotes
Files string // set to enable serving files locally
NoAuth bool // set to disable auth checks on AuthRequired methods
HTTPOptions httplib.Options
Enabled bool // set to enable the server
Serve bool // set to serve files from remotes
Files string // set to enable serving files locally
NoAuth bool // set to disable auth checks on AuthRequired methods
WebUI bool // set to launch the web ui
WebGUIUpdate bool // set to download new update
WebGUIFetchURL string // set the default url for fetching webgui
}
// DefaultOpt is the default values used for Options