Basic Caddy WebDAV setup
To get a barebones WebDAV server with caddy, try the following:
example.com {
@get method GET
route {
basic_auth {
<username> <hashed password>
}
file_server @get browse
webdav
}
root * /opt/webdav
}
This will allow the browsing and editing of files in /opt/webdav for users defined in basic_auth.
To generate a hashed password, use caddy hash-password.