diff --git a/nixos/hosts/nas0/default.nix b/nixos/hosts/nas0/default.nix index 788ae9c..a71bcbe 100644 --- a/nixos/hosts/nas0/default.nix +++ b/nixos/hosts/nas0/default.nix @@ -80,4 +80,21 @@ ''; }; }; + + # WebDAV anonymous reads + services.webdav-server-rs = { + enable = true; + seetings = { + location = [ + { + route = [ "/public/*path" ]; + directory = "/mnt/storage/main/public"; + handler = "filesystem"; + methods = [ "webdav-ro" ]; + autoindex = true; + auth = "false"; + } + ]; + }; + }; }