adguardhome: init

This commit is contained in:
Daniel Kempkens 2023-05-15 22:11:58 +02:00
parent 2c707e14cb
commit 666cd56c64
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -0,0 +1,45 @@
{
services.adguardhome = {
enable = true;
settings = {
bind_host = "127.0.0.1";
bind_port = 3000;
auth_attempts = 3;
debug_pprof = false;
dns = {
bind_hosts = [ "0.0.0.0" ];
port = 53;
bootstrap_dns = [
"9.9.9.11"
"149.112.112.11"
"2620:fe::11"
"2620:fe::fe:11"
];
};
tls = {
enabled = false;
allow_unencrypted_doh = true;
};
dhcp.enabled = false;
};
};
services.nginx.virtualHosts."dns.internal.kempkens.network" = {
quic = true;
http3 = true;
onlySSL = true;
useACMEHost = "internal.kempkens.network";
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:3000";
};
};
}