Sign inSign up

jonnyan404/chfs

By jonnyan404

Updated about 1 year ago

chfs局域网传输工具,支持amd64/arm64/armv7

Image
Web servers
6

10K+

jonnyan404/chfs repository overview

change log

  • 20250903 增加armv7支持
  • 20241012 更新v3.1版本
镜像反馈地址: https://github.com/Jonnyan404/chfsgui/issues
官网地址: http://iscute.cn/chfs
  • 支持arm64/amd64双平台
  • 下载链接格式:
文件: wget http://ip:port/chfs/shared/xxx.txt
目录: wget http://ip:port/chfs/downloaddir/xxx.zip

简单教程:

docker run --restart=on-failure:3 -d --name chfs -p 80:80 -v /path/you/dir:/data jonnyan404/chfs

  • 默认端口为80,权限为增删改.
  • /path/you/dir 请自行替换为你自己的目录

打开 http://ip 即可访问.

进阶教程:

1,自定义端口

docker run --restart=on-failure:3 -d --name chfs -p 80:80 -v /path/you/dir:/data jonnyan404/chfs --port=80 --path=/data

2,自定义配置文件

docker run --restart=on-failure:3 -d --name chfs -p 80:80 -v /path/you/dir:/data jonnyan404/chfs --file=/data/xxx.ini

3,同一个容器运行多个chfs
  • 1指定一个端口范围

docker run --restart=on-failure:3 -d --name chfs -p 80-90:80-90 -v /path/you/dir:/data jonnyan404/chfs

  • 2执行程序

docker exec -it chfs nohup chfs --port=88 --path=/data/xxx & OR docker exec -it chfs nohup chfs --file=/data/yyy.ini &

更多参数

//共享目录为D盘,监听端口号为8080
chfs --path="d:/" --port=8080

//共享目录为"d:\\projects"和"e:\\nsis",监听端口号为80
chfs --path="d:\\projects|e:\\nsis"

//白名单模式,允许192.168.1.2-192.168.1.100以及192.168.1.200进行访问
chfs --allow="192.168.1.2-192.168.1.100,192.168.1.200"

//黑名单模式,禁止192.168.1.2-192.168.1.100以及192.168.1.200进行访问
chfs --allow="not(192.168.1.2-192.168.1.100,192.168.1.200)"

//匿名用户具有只读权限(默认情况下匿名用户具有读写权限)
//账户ceshizu,密码为ceshizu123,对根目录的权限为只读,但对test目录具有读写权限
//账户yanfazu,密码为yanfazu123,对根目录的权限为只读,但对yanfa目录具有读写权限
chfs --rule="::r|ceshizu:ceshizu123:r:test:rw|yanfazu:yanfazu123:r:yanfa:rw"

//匿名用户什么权限都没有(默认情况下匿名用户具有读写权限)
//账户admin,密码为admin123,具有读写权限
//账户zhangsan,密码为zhangsan123,对根目录的权限为不可读写,但对zhangsanfiles目录具有读写权限
chfs --rule="::|admin:admin123:rw|zhangsan:zhangsan123::zhangsanfiles:rw"

//通过配置文件进行配置,该文件可以不存在,待以后需要更改配置时使用
chfs --file="d:\chfs\chfs.ini"

Tag summary

Content type

Image

Digest

sha256:2b91a70c2

Size

17.6 MB

Last updated

about 1 year ago

docker pull jonnyan404/chfs