Skip to content

Commit

Permalink
fix kresd http2 backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Nov 23, 2020
1 parent a4f112f commit d5164e9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions nixos/eve/modules/kresd.nix
@@ -1,18 +1,23 @@
{ pkgs, ... }: {
services.kresd = {
enable = true;
#listenDoH = [ "[::1]:8053" ];
listenPlain = [
"[::1]:53"
"127.0.0.1:53"
];
extraConfig = ''
net.listen('::1', 8053, { kind = 'doh', freebind = true })
modules.load('http')
http.config({})
net.listen('::1', 8453, { kind = 'webmgmt', freebind = true })
modules = { 'hints > iterate' }
hints.add_hosts('${pkgs.retiolum}/etc.hosts')
'';
};

nixpkgs.config.packageOverrides = pkgs: {
knot-resolver = pkgs.knot-resolver.override { extraFeatures = true; };
};

# This causes services to fail on upgrade
systemd.services."kresd@".restartIfChanged = false;

Expand All @@ -37,7 +42,7 @@
extraConfig = ''
zone doh 64k;
'';
servers."[::1]:8053" = {};
servers."[::1]:8453" = {};
};
virtualHosts."dns.thalheim.io" = {
useACMEHost = "thalheim.io";
Expand Down

0 comments on commit d5164e9

Please sign in to comment.