diff --git a/systems/palatine-hill/docker/torr.nix b/systems/palatine-hill/docker/torr.nix index f999ca9..c1905d6 100644 --- a/systems/palatine-hill/docker/torr.nix +++ b/systems/palatine-hill/docker/torr.nix @@ -17,7 +17,6 @@ let qbit_path = "${torr_path}/qbit"; qbitvpn_path = "${torr_path}/qbitvpn"; qbitperm_path = "${torr_path}/qbitperm"; - data_path = "${torr_path}/data"; in { @@ -30,14 +29,18 @@ in }; volumes = [ "${qbit_path}/config:/config" # move from docker/qbit to qbit_path - "${data_path}/data/:/data" + "${torr_path}/data/:/data" "/etc/localtime:/etc/localtime:ro" ]; + networks = [ "host" ]; ports = [ "8082:8082" "29432:29432" "29432:29432/udp" ]; + extraOptions = [ + "--dns=9.9.9.9" + ]; }; qbitVPN = qbitBase // { # webui port is 8081, torr port is 39274 @@ -50,7 +53,7 @@ in dependsOn = [ "gluetun-qbit" ]; volumes = [ "${qbitvpn_path}/config:/config" - "${data_path}/data:/data" + "${torr_path}/data:/data" "/etc/localtime:/etc/localtime:ro" ]; }; @@ -65,7 +68,7 @@ in dependsOn = [ "gluetun-qbit" ]; volumes = [ "${qbitperm_path}/config:/config" - "${data_path}/data:/data" + "${torr_path}/data:/data" "/etc/localtime:/etc/localtime:ro" ]; }; diff --git a/systems/palatine-hill/firewall.nix b/systems/palatine-hill/firewall.nix index 3a0cacf..8feeb16 100644 --- a/systems/palatine-hill/firewall.nix +++ b/systems/palatine-hill/firewall.nix @@ -45,6 +45,14 @@ 8686 8787 5055 + + # torr + 29432 + ]; + + allowedUDPPorts = [ + # torr + 29432 ]; };