mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-22 03:20:41 +08:00
eeae21cd29c86a32d0543e651d2e2878b3ab8220
I wanted to run this application as a service on my Debian based machine, which uses systemd as a service manager. Since there was no default or example service available in this repository, I've added a very simple service unit.
webdav
webdav is a simple tool that creates a WebDAV server for you. By default, it runs on a random free port and supports JSON and YAML configuration. Here is a simple YAML configuration example:
scope: /path/to/files
address: 0.0.0.0
port: 8080
users:
- username: admin
password: admin
- username: encrypted
password: "{bcrypt}$2y$10$zEP6oofmXFeHaeMfBNLnP.DO8m.H.Mwhd24/TOX2MWLxAExXi4qgi"
- username: basic
password: basic
modify: false
rules:
- regex: false
- allow: false
- path: /some/file
You can specify the path to the configuration file using the --config flag. By default, it will search for a config.{yaml,json} file on your current working directory.
Download it here.
Languages
Go
99.8%
Dockerfile
0.2%