selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
Dufs logo

Self-host Dufs

v0.47.0

File server for HTTP, WebDAV, uploads and static hosting

BetaOpen SourceApache-2.0
docker run -v `pwd`:/data -p 5000:5000 --rm sigoden/dufs /data -A
Updated2 weeks ago
LanguageRust
Setup difficultyEasy
ThemeDark mode
Stars
11 075
Port
5000 (HTTP/HTTPS file server UI and API)
Docker
sigoden/dufs
Dufs web interface showing a directory listing with files, sizes and actions

What is Dufs?

Dufs is a Rust file server that turns any folder into a web share you run as a single command, a container or a downloadable binary. It lists and serves static files, accepts drag-and-drop or curl uploads, lets you create, edit and search files in the browser, and can bundle an entire directory into a zip download. It also speaks WebDAV, supports resumable uploads and downloads, and can serve one file, an index.html site or a single-page app. Access control is defined per path with named accounts and read-write or read-only rules using basic or digest authentication; sha-512 hashed passwords and TLS certificates for HTTPS are supported. Options come from command-line flags, a YAML config file, or environment variables prefixed with DUFS_, so the container is easy to wire into a compose stack. The built-in listing UI is plain HTML/JS/CSS and can be replaced with your own assets folder.

Should you self-host Dufs?

Dufs scores 72/100 on selfhost.directory (how scoring works) and ranks #4 of 90 in File Sharing. It has 11 075 GitHub stars, +126 in the last 30 days.

It shipped 2 stable releases in the past year. The latest, v0.47.0, came out on 17 October 2026. New versions land roughly every 5 months.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is copyparty (82/100, 47 312 stars). It scores higher overall, so compare the two before you pick. See Dufs vs copyparty side by side.

Features

  • Command-line / HTTP API friendly
  • CORS
  • Customizable UI assets
  • Drag & drop uploads
  • File create, edit and search
  • Folder download as zip
  • Health check endpoint
  • Hidden paths
  • HTTPS
  • Per-path access controlAuth rights are capped by the global --allow-* options.
  • Resumable transfers
  • Single-page app / index.html serving
  • Static File Serving
  • WebDAV Support

Dufs README

Dufs

CI Crates Docker Pulls

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

demo

How to install Dufs

Install Dufs with Docker

Environment variables
DUFS_SERVE_PATH, DUFS_PORT, DUFS_AUTH, DUFS_ALLOW_ALL
docker run -v `pwd`:/data -p 5000:5000 --rm sigoden/dufs /data -A

How to configure Dufs

  • DUFS_SERVE_PATHPath to serve (a directory or a single file); defaults to the current working directory.
  • DUFS_CONFIGYAML configuration file to read options from (flag --config).
  • DUFS_BINDBind address(es) or a unix socket path (flag --bind).
  • DUFS_PORT5000TCP port to listen on (flag --port).
  • DUFS_PATH_PREFIXPrefix prepended to all served URLs.

Dufs releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in File Sharing

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…