blob: 299cc4ac6ab048552f163b197052d0d9cb22a0d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ config, ... }: {
services.webdav = {
enable = true;
settings = {
# only listen over tailscale, so weak auth ok. TODO: secrets management with sops or agenix
address = "100.64.0.2";
port = 8080;
directory = "/srv/webdav";
permissions = "RCUD";
users = [{
username = "defin";
password = "password";
}];
};
};
networking.firewall.allowedTCPPorts = [ 8080 ];
}
|