Evie Litherland-Smith
320d76f972
Separate service setup from traefik config for each, prep for future server separation
15 lines
480 B
Nix
15 lines
480 B
Nix
{pkgs, ...}: {
|
|
imports = [./default.nix];
|
|
environment.systemPackages = [pkgs.qbittorrent];
|
|
services.traefik.dynamicConfigOptions.http = {
|
|
routers.qbittorrent = {
|
|
rule = "Host(`torrent.xenia.me.uk`)";
|
|
entryPoints = ["http" "https"];
|
|
service = "qbittorrent-webinterface";
|
|
middlewares = ["auth"];
|
|
tls = {certResolver = "default";};
|
|
};
|
|
services.qbittorrent-webinterface.loadBalancer.servers = [{url = "http://localhost:8090";}];
|
|
};
|
|
}
|