Sign inSign up

naore/chfs

By naore

•Updated almost 7 years ago

http file server with webdav support by iscute.cn

Image
2

100K+

naore/chfs repository overview

Unofficial

⁠chfs 2.0 from http://iscute.cn/chfs⁠

If you need ssl support, turn to naore/chfs3_ssl⁠

Run

docker run -d \
--name=chfs \
--restart=unless-stopped \
-v /your_share_path:/home \
-v /etc/localtime:/etc/localtime:ro \
-p 58081:80 \
naore/chfs

If you wang to change users setting, run

docker run -d \
--name=chfs \
--restart=unless-stopped \
-v /your_share_path:/home \
-v /etc/localtime:/etc/localtime:ro \
-p 58081:80 \
naore/chfs \
/opt/chfs/chfs --rule="::r|root:admin:r:home:rw" --path=/home

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.

Tag summary

Content type

Image

Digest

Size

11.8 MB

Last updated

almost 7 years ago

docker pull naore/chfs