dots/modules/nixos/features/qbittorrent.nix
2026-01-15 00:33:57 +11:00

24 lines
471 B
Nix

let
port = 5005;
certloc = "/var/lib/acme/fi33.buzz";
in
{
services = {
qbittorrent = {
enable = true;
webuiPort = port;
profileDir = "/srv";
group = "srv";
extraArgs = [
"--confirm-legal-notice"
];
};
caddy.virtualHosts."qbittorrent.fi33.buzz".extraConfig = ''
reverse_proxy localhost:${toString port}
tls ${certloc}/cert.pem ${certloc}/key.pem {
protocols tls1.3
}
'';
};
}