hosts/plover: update Bind config generation

This commit is contained in:
Gabriel Arazas 2023-10-08 03:26:07 +08:00
parent 069723d38a
commit c35b72352e
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -1,3 +1,6 @@
# The DNS server for my domains. Take note it uses a hidden master setup with
# the secondary nameservers of the service (as of 2023-10-05, we're using
# Hetzner's secondary nameservers).
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
@ -162,6 +165,8 @@ in
in-view internal; in-view internal;
}; };
}; };
${cfg.extraConfig}
''; '';
}; };
@ -298,7 +303,7 @@ in
''; '';
kTLS = true; kTLS = true;
locations = { locations = {
"/".return = "404"; "/".return = "444";
"/dns-query".extraConfig = '' "/dns-query".extraConfig = ''
grpc_pass grpcs://local-dns; grpc_pass grpcs://local-dns;
grpc_socket_keepalive on; grpc_socket_keepalive on;