登录 注册
网络与基础设施 cloud-diskcommand-linefile-sharingfile-upload-serverruststatic-server
11,096
Stars
620
Forks
54
Watchers
5
Open Issues
Apache-2.0
许可证
Rust
语言
2022-05-26
创建时间
2026-11-10
最近更新

项目能做什么

功能全面的文件服务器,支持静态托管、上传、搜索、权限控制及 WebDAV。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Dufs

[![CI](https://github.com/sigoden/dufs/actions/workflows/ci.yaml/badge.svg)](https://github.com/sigoden/dufs/actions/workflows/ci.yaml)
[![Crates](https://img.shields.io/crates/v/dufs.svg)](https://crates.io/crates/dufs)
[![Docker Pulls](https://img.shields.io/docker/pulls/sigoden/dufs)](https://hub.docker.com/r/sigoden/dufs)

Dufs is a distinctive utility file server that supports static serving, uploading, searching, accessing control, webdav...

![demo](https://user-images.githubusercontent.com/4012553/220513063-ff0f186b-ac54-4682-9af4-47a9781dee0d.png)

## Features

- Serve static files
- Download folder as zip file
- Upload files and folders (Drag & Drop)
- Create/Edit/Search files
- Resumable/partial uploads/downloads
- Access control
- Support https
- Support webdav
- Easy to use with curl

## Install

### With cargo

```
cargo install dufs
```

### With docker

```
docker run -v `pwd`:/data -p 5000:5000 --rm sigoden/dufs /data -A
```

### With [Homebrew](https://brew.sh)

```
brew install dufs
```

### Binaries on macOS, Linux, Windows

Download from [Github Releases](https://github.com/sigoden/dufs/releases), unzip and add dufs to your $PATH.

## CLI

```
Dufs is a distinctive utility file server - https://github.com/sigoden/dufs

Usage: dufs [OPTIONS] [serve-path]

Arguments:
  [serve-path]  Specific path to serve [default: .]

Options:
  -c, --config <file>        Specify configuration file
  -b, --bind <addrs>         Specify bind address or unix socket
  -p, --port <port>          Specify port to listen on [default: 5000]
      --path-prefix <path>   Specify a path prefix
      --hidden <value>       Hide paths from directory listings, e.g. tmp,*.log,*.lock
  -a, --auth <rules>         Add auth roles, e.g. user:pass@/dir1:rw,/dir2
  -A, --allow-all            Allow all operations
      --allow-upload         Allow upload files/folders
      --allow-delete         Allow delete files/folders
      --allow-search         Allow search files/folders
      --allow-symlink        Allow symlink to files/folders outside root directory
      --allow-archive        Allow download folders as archive file
      --allow-hash           Allow ?hash query to get file sha256 hash
      --enable-cors          Enable CORS, sets `Access-Control-Allow-Origin: *`
      --render-index         Serve index.html when requesting a directory, returns 404 if not found index.html
      --render-try-index     Serve index.html when requesting a directory, returns directory listing if not found index.html
      --render-spa           Serve SPA(Single Page Application)
      --assets <path>        Set the path to the assets directory for overriding the built-in assets
      --log-format <format>  Customize http log format
      --log-file <file>      Specify the file to save logs to, other than stdout/stderr
      --compress <level>     Set zip compress level [default: low] [possible values: none, low, medium, high]
      --completions <shell>  Print shell com
阅读完整原文

项目深度分析 AI 生成

Dufs Hub:开箱即用的安全临时文件分发与收集 SaaS

产品构想基于 Dufs 核心与 WebDAV 协议,包装带认证、端到端限时分享、上传收集箱及内置公网穿透的托管式微盘服务。
核心功能一键公网分享链接、带密码/过期的临时上传入口、Webhook 通知、存储用量计费与自动清理。
目标用户独立咨询师、外包技术团队、需要给甲方临时交付/收集大文件的自由职业者。
难度/周期中等 · 1 - 2 个月 · 成本:低(基础云主机、对象存储、少量公网带宽费用)
收费模式免费层(限制流量/时长)+ 订阅制(月付/年付增值容量与专属域名)。
竞争风险违规内容托管(黑灰产利用)风控成本高;公网带宽成本难以控制。
依据 已验证事实

Dufs Pro:企业轻量私有化文件网关(Open-Core)

产品构想针对企业内网或局域网环境,提供商业闭源插件或扩展二进制,补齐企业级管控能力。
核心功能OIDC/LDAP/SSO 账号集成、细粒度团队目录权限、操作审计与下载日志归档、S3/对象存储挂载后端。
目标用户中小型研发团队、对数据敏感的内网隔离企业、设计/工程事务所。
难度/周期中等 · 2 - 3 个月 · 成本:极低(主要是代码开发与商业网站维护)
收费模式商业许可证授权(按节点或用户数买断/年付订阅支持)。
竞争风险面临 MinIO、OwnCloud 等成熟私有网盘方案的替代竞争;开源版功能已能满足大部分初级内网需求。
依据 AI推测

Dufs Desktop:跨平台跨设备极速互传与WebDAV挂载客户端

产品构想基于 Tauri 封装 Dufs 引擎,打造极简跨平台桌面端(Win/Mac/Linux),提供开箱即用的局域网互传与一键挂载网络盘能力。
核心功能托盘一键开/关共享、局域网设备自发现(mDNS)、二维码扫码收发文件、内置自签名 HTTPS 证书管理与系统磁盘映射助手。
目标用户NAS 用户、多设备办公者、非命令行习惯的普通极客用户。
难度/周期低 · 1 个月 · 成本:极低(仅需代码签名证书与应用打包费用)
收费模式应用商店付费买断(如 Mac App Store / Steam / Gumroad),提供高级传输优化或外观定制。
竞争风险替代工具众多(如 LocalSend、Tailscale、Syncthing),用户付费转化门槛高。
依据 数据支持的判断
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2022-05-26,近 30 天仍在推送,发布过 57 个 Release
社区活跃Star 11,096 / Fork 620 / Issue 5(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。