mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-18 05:58:17 +01:00
fix(youko): enlarge the nix cache proxy upstream keepalive pool
Assisted-by: DeepSeek Harness (claude-opus-5-5)
This commit is contained in:
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;
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user