diff --git a/server/traefik.nix b/server/traefik.nix index 97fee21f..92bfd4fa 100644 --- a/server/traefik.nix +++ b/server/traefik.nix @@ -25,11 +25,17 @@ tls = {certResolver = "default";}; }; services.traefik-webinterface.loadBalancer.servers = [{url = "http://localhost:8080";}]; + routers.qbittorrent = { + rule = "Host(`torrent.xenia.me.uk`)"; + service = "qbittorrent-webinterface"; + tls = {certResolver = "default";}; + }; + services.qbittorrent-webinterface.loadBalancer.servers = [{url = "http://localhost:8090";}]; }; }; networking.firewall = { enable = true; - allowedTCPPorts = [80 443 8080]; + allowedTCPPorts = [80 443 8080 8090]; }; services.fail2ban.jails.traefik = '' enabled = true