Add local rewrite for server domains

Ignore same domains from statistics as querylog
This commit is contained in:
Evie Litherland-Smith 2023-10-22 08:49:17 +01:00
parent 2cd3921dbc
commit 350fa9fbf1

View file

@ -5,7 +5,7 @@
services.adguardhome = { services.adguardhome = {
enable = true; enable = true;
mutableSettings = false; mutableSettings = false;
settings = { settings = rec {
http.address = "0.0.0.0:3001"; http.address = "0.0.0.0:3001";
dns = { dns = {
bind_hosts = [ "127.0.0.1" "192.168.1.230" ]; bind_hosts = [ "127.0.0.1" "192.168.1.230" ];
@ -13,11 +13,25 @@
ratelimit = 0; ratelimit = 0;
safe_search.enabled = true; safe_search.enabled = true;
}; };
filtering = {
inherit (dns) safe_search;
rewrites = [
{
domain = "xenia.me.uk";
answer = "192.168.1.230";
}
{
domain = "*.xenia.me.uk";
answer = "A";
}
];
};
querylog.ignored = [ querylog.ignored = [
"discovery.syncthing.net" "discovery.syncthing.net"
"discovery-v6.syncthing.net" "discovery-v6.syncthing.net"
"matrix.tchncs.de" "matrix.tchncs.de"
]; ];
statistics = { inherit (querylog) ignored; };
}; };
openFirewall = true; openFirewall = true;
}; };