nixos/services/traefik/adguardhome.nix

13 lines
379 B
Nix
Raw Normal View History

2023-05-17 17:10:18 +01:00
{...}: {
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";
tls = {certResolver = "default";};
};
services.adguard-webinterface.loadBalancer.servers = [{url = "http://localhost:3001";}];
};
}