mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #155] dufs-v0.31.0-i686-unknown-linux-musl.tar.gz miss option --allow-archive #75
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @laminux29 on GitHub (Dec 23, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/155
Problem
#==============================
root@Test-Debian-11-4-0-AppTest:~# dufs /www_dufs/ --bind 0.0.0.0 --port 443 --allow-search --enable-cors --allow-archive
error: Found argument '--allow-archive' which wasn't expected, or isn't valid in this context
Did you mean '--allow-search'?
Usage: dufs --bind --port --allow-search --enable-cors
For more information try '--help'
#==============================
root@Test-Debian-11-4-0-AppTest:~# dufs --help
Dufs is a distinctive utility file server - https://github.com/sigoden/dufs
Usage: dufs [OPTIONS] [root]
Arguments:
[root] Specific path to serve [default: .]
Options:
-b, --bind Specify bind address or unix socket
-p, --port Specify port to listen on [default: 5000]
--path-prefix Specify a path prefix
--hidden Hide paths from directory listings, separated by
,-a, --auth Add auth for path
--auth-method Select auth method [default: digest] [possible values: basic, digest]
-A, --allow-all Allow all operations
--allow-upload Allow upload files/folders
--allow-delete Allow delete files/folders
--allow-search Allow search files/folders
--allow-symlink Allow symlink to files/folders outside root directory
--enable-cors Enable CORS, sets
Access-Control-Allow-Origin: *--render-index Serve index.html when requesting a directory, returns 404 if not found index.html
--render-try-index Serve index.html when requesting a directory, returns directory listing if not found index.html
--render-spa Serve SPA(Single Page Application)
--assets Use custom assets to override builtin assets
--tls-cert Path to an SSL/TLS certificate to serve with HTTPS
--tls-key Path to the SSL/TLS certificate's private key
--log-format Customize http log format
--completions Print shell completion script for [possible values: bash, elvish, fish, powershell, zsh]
-h, --help Print help information
-V, --version Print version information
#==============================
root@Test-Debian-11-4-0-AppTest:~# dufs --version
dufs 0.31.0
#==============================
Environment:
@sigoden commented on GitHub (Dec 23, 2022):
--allow-archiveis a newly merged feature, not released yet.