docyc/chfs
chfs
是web文件管理器,支持上传下载,支持webdav
docker pull docyc/chfs:arm64
docker push docyc/chfs
配置文件模版下载
docker run -d \
--name=chfs \
--restart=always \
-v <配置文件路径>:/app/chfs.ini \
-v <数据存放位置>:/app/data \
-p <自定义端口>:666 \
docyc/chfs
注:注意端口位置666
要和你配置文件一致
docker run -d \
--name=chfs \
--restart=always \
-v <数据存放位置>:/app/data \
-p <自定义端口>:666 \
docyc/chfs 、
/app/chfs --path="/mnt/sda1" --port=666 --rule="::r|root:123456:rw"
程序默认支持webdav,跟http共用同一套访问规则。其地址为:http://host:port/webdav
chfs
具体使用,查看帮助docker run --rm docyc/chfs /app/chfs --help
#输出如下内容
usage: chfs [<flags>]
Flags:
--help Show context-sensitive help (also try --help-long and
--help-man).
--path=DIRECTORIES Directories where store shared files, separated by '|'.
--port=PORT HTTP listening port(Default is 80).
--allow=LIST Allowed IPv4 addresses(Allow any address by default).
White list mode: "listitem1[,listitem2,...]" e.g.
"192.168.1.2-192.168.1.10,192.169.1.222" allows this 10
addresses.
Black list mode: "not(listitem1[,listitem2,...])" e.g.
"not(192.168.1.2-192.168.1.10,192.169.1.222)" bans this 10
addresses!
--rule=LIST Access rules(anybody can access any thing by default).
List defines like:"USER:PWD:MASK[:DIR:MASK...][|...]":
1,USER and PWD is account name and password
2,MASK:''=NO present,'r'=read,'w'=write,'d'=delete
3,r=view+download,w=r+upload+create+rename,d=w+delete
4,DIR is directory name, allows wildcard('*' & '?')
5,The 3rd field is access mask of shared root directory
6,The optional fields is pairs of sub-directory and mask
7,The optional sub-directory's mask overwrite parent's
8,You should avoid '|' ':' and white space(exclude DIR)
For instance: "::|root:123456:rw" bans guest, and defines
a account 'root' can do anything
--log=DIRECTORY Log directory. Empty value will disable log.
--file=FILE A configuration file which overwrites & enhence the
settings.
--version Show application version.
docker pull docyc/chfs