nixos/services/traefik/adguardhome.nix

17 lines
447 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
imports = [ ./default.nix ];
services.traefik.dynamicConfigOptions.http = {
2023-05-17 17:10:18 +01:00
routers.adguard = {
rule = "Host(`guard.xenia.me.uk`)";
entryPoints = [ "http" "https" ];
2023-05-17 17:10:18 +01:00
service = "adguard-webinterface";
middlewares = [ "auth" ];
tls = { certResolver = "default"; };
2023-05-17 17:10:18 +01:00
};
services.adguard-webinterface.loadBalancer.servers =
[{ url = "http://localhost:3200"; }];
};
}