nixos/services/traefik/adguardhome.nix

17 lines
447 B
Nix

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