hacdias/webdav serves local directories over WebDAV with YAML, JSON, or TOML rules, Docker images, and reverse-proxy examples for subpath deployments.
Overview
webdav is a Go-based server that exposes configured filesystem directories through the WebDAV protocol. Operators download release binaries, install via Homebrew or go install, or run official Docker images from GitHub Container Registry or Docker Hub.
Configuration files define listeners, TLS, authentication, per-path permission rules, CORS, and logging. Rules handle case sensitivity per filesystem, symlink behavior, partial updates compatible with SabreDAV PATCH extensions, and Content-Range PUT compatibility.
A /webdav/health endpoint supports container health checks, and documentation explains Fail2Ban filters, systemd units, nginx and Caddy reverse-proxy header forwarding, and serving under subpaths with prefix settings.
The author licenses the project under MIT. Users mount remote file managers, backup tools, or desktop clients against the shared directories with fine-grained read, write, and delete controls.
Key features
- Standalone WebDAV HTTP server
- YAML, JSON, or TOML configuration
- Path and regex authorization rules
- Docker images on GHCR and Docker Hub
- SabreDAV partial update support
- CORS and credential configuration
- Reverse proxy and subpath prefix handling
- Fail2Ban and systemd deployment examples
Use cases
- Self-hosting files for desktop sync clients
- Bridging local folders to remote editors
- Providing authenticated file shares on a VPS
- Dockerized WebDAV behind nginx or Caddy