cluster/services/nginx: use proper resolvers

This commit is contained in:
Max Headroom 2024-08-02 22:46:05 +02:00
parent 064f306f10
commit 341be59cec

View file

@ -1,4 +1,4 @@
{ depot, ... }: { config, depot, ... }:
let let
inherit (depot.lib.meta) adminEmail; inherit (depot.lib.meta) adminEmail;
@ -13,7 +13,7 @@ in {
recommendedGzipSettings = true; recommendedGzipSettings = true;
proxyResolveWhileRunning = true; proxyResolveWhileRunning = true;
resolver = { resolver = {
addresses = [ "127.0.0.1" ]; addresses = config.networking.nameservers;
valid = "30s"; valid = "30s";
}; };
appendHttpConfig = '' appendHttpConfig = ''