services.webdav-server-rs.settings
NixOS option
Attrset that is converted and passed as config file. Available options can be found at here.
type: TOML valueDefault
{ }Example
declared in: nixos/modules/services/network-filesystems/webdav-server-rs.nixView source on NixOS/nixpkgs →{
server.listen = [ "0.0.0.0:4918" "[::]:4918" ];
accounts = {
auth-type = "htpasswd.default";
acct-type = "unix";
};
htpasswd.default = {
htpasswd = "/etc/htpasswd";
};
location = [
{
route = [ "/public/*path" ];
directory = "/srv/public";
handler = "filesystem";
methods = [ "webdav-ro" ];
autoindex = true;
auth = "false";
}
{
route = [ "/user/:user/*path" ];
directory = "~";
handler = "filesystem";
methods = [ "webdav-rw" ];
autoindex = true;
auth = "true";
setuid = true;
}
];
}