server.nix/services/qbittorrent.nix

27 lines
630 B
Nix
Raw Normal View History

{ config, inputs, ... }: {
2024-11-18 22:56:35 +02:00
imports = [
inputs.common-modules.nixosModules.qbittorrent-nox
];
services = {
qbittorrent-nox = {
enable = true;
openFirewall = true;
webuiPort = 4010;
torrentingPort = 43125;
2025-03-19 23:47:10 +02:00
extraArgs = [
"--confirm-legal-notice"
];
2024-11-18 22:56:35 +02:00
};
caddy.virtualHosts."http://qbittorrent.internal".extraConfig = ''
@local remote_ip private_ranges 100.64.0.0/10
reverse_proxy @local :${toString config.services.qbittorrent-nox.webuiPort}
'';
2024-11-18 22:56:35 +02:00
borgbackup.jobs."borgbase".paths = [
2025-03-19 23:47:10 +02:00
config.services.qbittorrent-nox.profileDir
2024-11-18 22:56:35 +02:00
];
};
}