docyc/chfs

By docyc

Updated over 1 year ago

web文件管理器,支持上传下载,支持webdav

Image
4

861

信息描述

chfs是web文件管理器,支持上传下载,支持webdav

  • 注意查看tag标签, 默认latest是X86_64
  • 例如:如果是arm64架构,请使用docker pull docyc/chfs:arm64

使用说明

1.下载镜像
docker push docyc/chfs
2.1配置文件方式运行 (推荐)

配置文件模版下载

docker run -d \
    --name=chfs \
    --restart=always \
    -v <配置文件路径>:/app/chfs.ini \
    -v <数据存放位置>:/app/data \
    -p <自定义端口>:666 \
    docyc/chfs

注:注意端口位置666要和你配置文件一致

2.2直接命令方式运行
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

程序默认支持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 Command

docker pull docyc/chfs