14 lines
450 B
Nix
14 lines
450 B
Nix
{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";
|
|
tls = {certResolver = "default";};
|
|
};
|
|
services.qbittorrent-webinterface.loadBalancer.servers = [{url = "http://localhost:8090";}];
|
|
};
|
|
}
|