Skip to content

Commit 12020e3

Browse files
committed
Add the "webdav-server-rs" page.
1 parent 7649b73 commit 12020e3

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

content/notes/webdav-server-rs.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
+++
2+
title = "webdav-server-rs"
3+
+++
4+
5+
`webdav-server-rs` is an implementation of the WebDAV server. It is a single binary deployment, in contrast to Apache WebDAV. It has support for user accounts and switching UID/GID to those user accounts on Linux.
6+
7+
Links:
8+
9+
- [Source code](https://github.com/miquels/webdav-server-rs)
10+
- [Repology](https://repology.org/project/webdav-server-rs/versions)
11+
12+
## Example
13+
14+
Example configuration:
15+
16+
```toml
17+
# /etc/webdav-server-rs/config.toml
18+
19+
[server]
20+
listen = [ "0.0.0.0:4918", "[::]:4918" ]
21+
uid = 999
22+
gid = 999
23+
24+
[accounts]
25+
auth-type = "htpasswd.webdav"
26+
acct-type = "unix"
27+
28+
[htpasswd.webdav]
29+
htpasswd = "/etc/webdav-server-rs/webdav.htpasswd"
30+
31+
[unix]
32+
cache-timeout = 120
33+
min-uid = 1000
34+
35+
[[location]]
36+
route = [ "/*path" ]
37+
methods = [ "webdav-rw" ]
38+
auth = "true"
39+
handler = "filesystem"
40+
setuid = true
41+
directory = "~/Public/WebDAV"
42+
autoindex = true
43+
hide-symlinks = false
44+
```

0 commit comments

Comments
 (0)