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
Serve files under a subdirectory of url. This may be useful if the
server is behind a reverse proxy and received the request without
proxying path stripped.
Add cmdline option `--prefix` to specify the url prefix.
Add cmdline option `--base` to specify the case-insensitive url
prefix.
err=options.AddFlagValues("prefixurls", "--prefix", "", nil, "serve files under URL path instead of /")
30
+
serverErrHandler.CheckFatal(err)
31
+
32
+
err=options.AddFlagValues("baseurls", "--base", "", nil, "serve files under case-insensitive URL path instead of /")
33
+
serverErrHandler.CheckFatal(err)
34
+
29
35
opt=goNixArgParser.NewFlagValueOption("defaultsort", "--default-sort", "GHFS_DEFAULT_SORT", "/n", "default sort for files and directories")
30
36
opt.Description="Available sort key:\n- `n` sort by name ascending\n- `N` sort by name descending\n- `e` sort by type(suffix) ascending\n- `E` sort by type(suffix) descending\n- `s` sort by size ascending\n- `S` sort by size descending\n- `t` sort by modify time ascending\n- `T` sort by modify time descending\n- `_` no sort\nDirectory sort:\n- `/<key>` directories before files\n- `<key>/` directories after files\n- `<key>` directories mixed with files\n"
0 commit comments