fix(youko): enlarge the nix cache proxy upstream keepalive pool

Assisted-by: DeepSeek Harness (claude-opus-5-5)
This commit is contained in:
Ryan Yin committed 2026-11-17 23:57:25 +08:00
1 parent ac3f775efa
commit 2c3db10bf0
1 file changed
+7 -1
@@ -63,7 +63,13 @@ in
host:
lib.nameValuePair (upstreamName host) {
servers."${host}:443" = { };
extraConfig = "keepalive 16;";
# Several Nix clients open up to 25 connections each; keep them idle
# between bursts instead of handshaking again.
extraConfig = ''
keepalive 128;
keepalive_requests 2000;
keepalive_timeout 120s;
'';
}
);