chore(koi): torrent container adjustments

This commit is contained in:
alina 🌸 2024-06-15 07:16:01 +03:00
parent b06f6ae505
commit 29ad28b6f7
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -17,8 +17,8 @@ in
(containers.mkNixosContainer {
name = "torrent";
ephemeral = false;
ip = ".0.2";
private = true;
ip = "10.42.0.9";
private = false;
config = { ... }: {
imports = [
@ -46,8 +46,10 @@ in
# upload speed doesn't matter that much
"Session\\TempPath" = "/var/lib/qbittorrent/temp";
"Session\\TempPathEnabled" = "true";
"Session\\Port" = "13370";
};
Network = {
"PortForwardingEnabled" = "false";
"Proxy\\IP" = "10.42.0.2";
"Proxy\\Port" = "@Variant(\\0\\0\\0\\x85\\x1e\\xd2)"; # 7890
"Proxy\\Type" = "SOCKS5";
@ -60,7 +62,8 @@ in
};
})
];
networking.firewall.allowedTCPPorts = [ 80 ];
networking.firewall.allowedTCPPorts = [ 80 13370 ];
networking.firewall.allowedUDPPorts = [ 13370 ];
};
mounts = {