services: transmission: use openFirewall setting

This commit is contained in:
Antoine Martin 2021-06-03 00:33:52 +02:00
parent 84b82a019b
commit 46df5d0642

View file

@ -49,6 +49,9 @@ in
rpc-whitelist-enabled = true; rpc-whitelist-enabled = true;
rpc-whitelist = "127.0.0.1"; rpc-whitelist = "127.0.0.1";
}; };
# automatically allow transmission.settings.peer-port
openFirewall = true;
}; };
services.nginx.virtualHosts."${webuiDomain}" = { services.nginx.virtualHosts."${webuiDomain}" = {
@ -57,10 +60,5 @@ in
locations."/".proxyPass = "http://127.0.0.1:${toString transmissionRpcPort}"; locations."/".proxyPass = "http://127.0.0.1:${toString transmissionRpcPort}";
}; };
networking.firewall = {
allowedTCPPorts = [ transmissionPeerPort ];
allowedUDPPorts = [ transmissionPeerPort ];
};
}; };
} }