2023-05-07 18:20:26 +01:00
|
|
|
{ ... }:
|
|
|
|
{
|
2023-05-11 11:54:42 +01:00
|
|
|
imports = [ ./traefik.nix ];
|
2023-05-07 18:20:26 +01:00
|
|
|
services.adguardhome = {
|
|
|
|
enable = true;
|
|
|
|
mutableSettings = true;
|
2023-05-11 11:54:42 +01:00
|
|
|
settings.bind_port = 3001;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 53 ];
|
|
|
|
allowedUDPPorts = [ 53 ];
|
|
|
|
};
|
|
|
|
services.traefik.dynamicConfigOptions.http = {
|
2023-05-15 07:51:06 +01:00
|
|
|
routers.adguard = { rule = "Host(`guard.xenia.me.uk`)"; service = "adguard-webinterface"; tls = { certResolver = "default"; }; };
|
2023-05-11 11:54:42 +01:00
|
|
|
services.adguard-webinterface.loadBalancer.servers = [{ url = "http://localhost:3001"; }];
|
2023-05-07 18:20:26 +01:00
|
|
|
};
|
|
|
|
}
|