Expose webdav both on the LAN and the VPN

This commit is contained in:
Andrea Ciceri 2024-12-31 14:36:38 +01:00
parent 64425bd447
commit 37e55bb342
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -19,15 +19,16 @@
systemd.services.nfs-server.preStart = '' systemd.services.nfs-server.preStart = ''
chmod -R 775 /export/hd/torrent chmod -R 775 /export/hd/torrent
''; '';
services.webdav = { services.webdav = {
enable = true; enable = true;
settings = { settings = {
address = "10.1.1.2"; # accessible only in LAN, used by Kodi installed on the TV address = "0.0.0.0";
port = 9999; port = 9999;
scope = "/mnt/hd/torrent"; scope = "/mnt/hd/torrent";
modify = false; modify = false;
auth = false; # TODO should we enable authentication? It's only reachable in LAN auth = false;
debug = true; debug = true;
users = [ ]; users = [ ];
}; };