7
Duf 是一款简单的文件服务器, 支持静态文件伺服、上传、下载、webdav 云盘...
source link: https://www.v2ex.com/t/857461
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
- 静态文件伺服
- 下载目录为 zip 文件
- 上传文件 /目录 (支持拖拽)
- 并发下载,断续下载
- 支持 https
- 支持 webdav
- 方便 curl 调用
用 Rust 编写,单可执行文件,跨平台
18 条回复 • 2022-06-06 18:04:35 +08:00
wym0823 13 小时 16 分钟前 非常不错,体验很好!
|
hnbcinfo 12 小时 54 分钟前 这个好,最近正在找一个,这种简单方便的静态资源项目。感谢
|
ifoolish 12 小时 45 分钟前 via iPhone 试试。之前简单的需求都用 darkhttp
|
boko 12 小时 39 分钟前 via Android http://iscute.cn/chfs
之前用过类似的 chfs |
diegozhu 12 小时 34 分钟前 支持 ipv6 不?
|
gesse 11 小时 47 分钟前 项目看着不错,如果是简单的文件下载一下,可以
``` python3 -m http.server 8080 ``` |
Acoffice 11 小时 47 分钟前 建议支持常规文件的在线预览以及指定目录的功能
|
supermoonie 11 小时 36 分钟前 启动命令: duf --allow-all --path-prefix duf -a user:pwd /public/static/
nginx 配置:location /duf { proxy_pass http://127.0.0.1:5000/duf; } 访问链接: http://example.com/duf 通过上面的链接访问,content-type 为 application/octet-stream ,直接把 index.html 下载下来了 |
Davic1 11 小时 10 分钟前 in rust, nice
|
sigoden 10 小时 38 分钟前 @diegozhu 下一次发布会支持 ipv6
@supermoonie 当前默认页面返回时是没有 content-type 头的,返回 content-type: application/octet-stream 很奇怪的。下一个版本会添加 content-type: text/html ,但不确定会不会修复你说的问题 @Acoffice 预览引入太多复杂性了,现在的前端页面是纯原生没有任何依赖的。一些常规文件比如文本,视频等浏览器是能打开的,对多数人来说够用了。不明白你说的指定目录时什么意思。 |
supermoonie 8 小时 37 分钟前 @sigoden 返回 content-type: application/octet-stream 是因为 nginx 配置的默认 content-type ,因为我看你代码里没有设置 content-type ,应该是 nginx 默认处理成 application/octet-stream 了。你加一下请求头,完了我再试一下
|
littlewing 8 小时 35 分钟前 跟 filebrowser 和 h5ai 相比,优势是什么?
|
AlisaDestiny 5 小时 1 分钟前 老哥写 Rust 哪个 IDE 比较好用
|
vinsa 4 小时 45 分钟前 |
bbis 4 小时 26 分钟前 |
sigoden 3 小时 52 分钟前 @Acoffice 很多场景和用户并不需要预览,目前不打算提供。前端 js 原则上倾向于维持原生,暂不会引入任何第三方依赖。
@littlewing 文件服务有很多,选个满足需求的就行。 @AlisaDestiny vscode + rust-analyzer |
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK