2023-05-25 17:05:25 +01:00
|
|
|
{pkgs, ...}: {
|
|
|
|
imports = [./traefik.nix];
|
|
|
|
environment.systemPackages = [pkgs.qbittorrent];
|
|
|
|
services.traefik.dynamicConfigOptions.http = {
|
|
|
|
routers.qbittorrent = {
|
|
|
|
rule = "Host(`torrent.xenia.me.uk`)";
|
|
|
|
entryPoints = ["http" "https"];
|
|
|
|
service = "qbittorrent-webinterface";
|
2023-05-25 17:17:23 +01:00
|
|
|
middlewares = ["auth"];
|
2023-05-25 17:05:25 +01:00
|
|
|
tls = {certResolver = "default";};
|
|
|
|
};
|
|
|
|
services.qbittorrent-webinterface.loadBalancer.servers = [{url = "http://localhost:8090";}];
|
|
|
|
};
|
|
|
|
}
|