nixos/services/traefik/adguardhome.nix

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