marjune
marjune
也可以自己编译 ```sh GOOS=linux GOARCH=mipsle go build -o /tmp/ghfs main.go ``` GOARCH可以是 `mips`, `mips64`, `mipsle`, `mips64le`.
[EHFS](https://github.com/mjpclab/extra-http-file-server) 增加了权限设置相关功能,可以参考: https://github.com/mjpclab/extra-http-file-server/releases/tag/v1.15.11 例如 `ehfs -r /home/user/server/ --perms-dir :/home/user/server/private:upload,mkdir,delete:username`
但好像目前没有添加访问控制的权限 😜 谢谢支持,但考虑到不希望因为接受打赏而受到打赏人的压力以实现某些需求,决定统一不接受打赏。有需求可以提,我会权衡考虑的。
~~[EHFS](https://github.com/mjpclab/extra-http-file-server) 下一版会增加`access`权限,可以这么用:~~ ```sh ehfs -r /data --perms :/user1dir:access,upload,delete:user1 --perms :/user2dir:access,upload,delete:user2 ``` ~~注意:对某个路径指定`access`权限将导致其不再是公共可访问的。~~ ~~目前还在研究支持方法。~~
1.17.0增加了`--auth-user`和`--auth-dir-user`选项用于限定访问认证的用户。详见发布说明:https://github.com/mjpclab/go-http-file-server/releases/tag/v1.17.0
可以把命令行选项参数放在文件里,然后运行 ghfs --config <file>
谢谢支持!
The docker file is here: https://github.com/mjpclab/go-http-file-server/blob/main/build/build-docker-image-dockerfile And its' build script is: https://github.com/mjpclab/go-http-file-server/blob/main/build/build-docker-image.sh I think in most case you could use https://hub.docker.com/r/mjpclab/ghfs (upload/mkdir/archive is not enabled by default).
If directory is accessible to a user, then it is always possible to download all files one by one. The only different is the user don't need to download one...
Version 1.18.1 adds `--archive-user` and `--archive-dir-user`.