Enable webdav
in LAN for Kodi on the TV
Some checks failed
Some checks failed
This commit is contained in:
parent
0fc04a3b18
commit
f4364c6398
3 changed files with 40 additions and 21 deletions
|
@ -18,7 +18,7 @@
|
||||||
"sisko-proxy"
|
"sisko-proxy"
|
||||||
"invidious"
|
"invidious"
|
||||||
"searx"
|
"searx"
|
||||||
"sisko-nfs"
|
"sisko-share"
|
||||||
"forgejo"
|
"forgejo"
|
||||||
"prometheus"
|
"prometheus"
|
||||||
"grafana"
|
"grafana"
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d /export 770 nobody nogroup"
|
|
||||||
];
|
|
||||||
|
|
||||||
fileSystems."/export/hd" = {
|
|
||||||
device = "/mnt/hd";
|
|
||||||
options = [ "bind" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.nfs.server = {
|
|
||||||
enable = true;
|
|
||||||
exports = ''
|
|
||||||
/export 10.100.0.1/24(rw,fsid=0,no_subtree_check)
|
|
||||||
/export/hd 10.100.0.1/24(rw,nohide,insecure,no_subtree_check,no_root_squash)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 2049 ];
|
|
||||||
}
|
|
39
modules/sisko-share/default.nix
Normal file
39
modules/sisko-share/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d /export 770 nobody nogroup"
|
||||||
|
];
|
||||||
|
|
||||||
|
fileSystems."/export/hd" = {
|
||||||
|
device = "/mnt/hd";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nfs.server = {
|
||||||
|
enable = true;
|
||||||
|
exports = ''
|
||||||
|
/export 10.100.0.1/24(rw,fsid=0,no_subtree_check)
|
||||||
|
/export/hd 10.100.0.1/24(rw,nohide,insecure,no_subtree_check,no_root_squash)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.webdav = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
address = "10.1.1.2"; # accessible only in LAN, used by Kodi installed on the TV
|
||||||
|
port = 9999;
|
||||||
|
scope = "/mnt/hd/torrent";
|
||||||
|
modify = false;
|
||||||
|
auth = false; # TODO should we enable authentication? It's only reachable in LAN
|
||||||
|
debug = true;
|
||||||
|
users = [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.webdav.extraGroups = [ "transmission" ];
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
2049
|
||||||
|
9999
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue