update adguard dns resolvers

This commit is contained in:
Kopatz
2023-10-26 18:44:09 +02:00
parent 670c01b562
commit 21aad93b6b
2 changed files with 33 additions and 3 deletions

View File

@@ -5,16 +5,43 @@
users = [
{
name = "admin";
password = "$2y$15$3RPgWOXmeUU6NGo.XTx2LuL1oKS.YRrLOIa9VmINnzvtkHNY7A4hq";
password = "$2y$15$iPzjmUJPTwWUOsDp46GOPO/LYor/jDJjndwy2QlPddaKSD4QXvq9W";
}
];
dns = {
bind_hosts = [ "127.0.0.1" ];
bind_hosts = [ "127.0.0.1" "192.168.0.6" ];
port = 53;
protection_enabled = true;
filtering_enabled = true;
upstream_dns = [ "quic://doh.tiar.app" "tls://getdnsapi.net"];
upstream_dns = [
"https://doh.tiar.app/dns-query"
"tls://getdnsapi.net"
"https://dns.adguard-dns.com/dns-query"
"tls://dot.seby.io"
];
use_http3_upstreams = true;
rewrites = [
{
"domain" = "kopatz.ddns.net";
"answer" = "192.168.0.6";
}
{
"domain" = "server.home";
"answer" = "192.168.0.6";
}
{
"domain" = "server.local";
"answer" = "192.168.0.6";
}
{
"domain" = "adguard.local";
"answer" = "192.168.0.6";
}
{
"domain" = "inverter.local";
"answer" = "192.168.0.9";
}
];
};
querylog = {
enabled = false;

View File

@@ -27,6 +27,9 @@
add_header Access-Control-Allow-Origin *;
'';
};
"adguard.local" = {
locations."/".proxyPass = "http://127.0.0.1:3000";
};
};
};
}