Compare commits

...

3 commits

Author SHA1 Message Date
a3d1233ad1
Torrents readable by everybody by default
Some checks failed
EVAL x86_64-linux.picard
BUILD x86_64-linux.picard
UPLOAD x86_64-linux.picard
DOWNLOAD x86_64-linux.picard
CACHIX x86_64-linux.picard
ATTIC x86_64-linux.picard
/ test (push) Successful in 2m13s
2024-12-31 14:36:58 +01:00
37e55bb342
Expose webdav both on the LAN and the VPN 2024-12-31 14:36:38 +01:00
64425bd447
Fix permissions before starting nfs-server 2024-12-31 14:36:15 +01:00
2 changed files with 8 additions and 4 deletions

View file

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

View file

@ -39,8 +39,8 @@
];
systemd.tmpfiles.rules = [
"d /mnt/hd/torrent 770 transmission transmission"
"d /mnt/hd/torrent/.incomplete 770 transmission transmission"
"d /mnt/hd/torrent 774 transmission transmission"
"d /mnt/hd/torrent/.incomplete 774 transmission transmission"
];
environment.persistence."/persist".directories = [