You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/param/cli.go
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,15 @@ func init() {
21
21
err=options.AddFlagsValue("root", []string{"-r", "--root"}, "GHFS_ROOT", ".", "root directory of server")
22
22
serverErrHandler.CheckFatal(err)
23
23
24
+
err=options.AddFlagsValues("fallbackproxies", []string{"-x", "--fallback-proxy"}, "", nil, "reverse proxy to target if local resource not found, <sep><url><sep><target>, e.g. :/doc:http://remote/doc")
25
+
serverErrHandler.CheckFatal(err)
26
+
27
+
err=options.AddFlagsValues("alwaysproxies", []string{"-X", "--always-proxy"}, "", nil, "reverse proxy to target shadows local resource, <sep><url><sep><target>, e.g. :/doc:http://remote/doc")
28
+
serverErrHandler.CheckFatal(err)
29
+
30
+
err=options.AddFlag("ignorebadproxycert", "--ignore-proxy-target-bad-cert", "", "ignore proxy target bad certificate")
31
+
serverErrHandler.CheckFatal(err)
32
+
24
33
err=options.AddFlagsValues("aliases", []string{"-a", "--alias"}, "", nil, "set alias path, <sep><url><sep><path>, e.g. :/doc:/usr/share/doc")
0 commit comments