1
Fork 0
adguardhome/src/main.tf

44 lines
829 B
HCL

resource "adguard_config" "config" {
dhcp = {
interface = "enp2s0"
enabled = true
ipv4_settings = {
gateway_ip = "192.168.1.1"
subnet_mask = "255.255.252.0"
range_start = "192.168.1.10"
range_end = "192.168.1.199"
lease_duration = 86400
}
static_leases = [
{
hostname = "tang"
ip = "192.168.1.53"
mac = "18:66:da:00:70:d8"
}
]
}
stats = {
interval = 168
}
querylog = {
interval = 168
}
dns = {
rate_limit = 50
blocked_response_ttl = 30
rate_limit_subnet_len_ipv4 = 22
upstream_dns = [
"https://dns10.quad9.net:443/dns-query",
"[/theorangeone.net/]${local.coredns_host}",
"[/jakehoward.tech/]${local.coredns_host}"
]
}
}