diff --git a/services/gerrit/default.nix b/services/gerrit/default.nix index 8e1ae5e..833d6ee 100644 --- a/services/gerrit/default.nix +++ b/services/gerrit/default.nix @@ -101,7 +101,7 @@ in core.packedGitMmap = true; ## Takes more CPU but the transfer is smaller. - pack.deltacompression = false; + pack.deltacompression = true; pack.threads = 8; # FIXME(raito): @@ -218,6 +218,7 @@ in User = "git"; Group = "git"; }; + environment.REVWALK_USE_PRIORITY_QUEUE = "true"; }; }; } diff --git a/services/gerrit/www.nix b/services/gerrit/www.nix index 815e582..83cdcb0 100644 --- a/services/gerrit/www.nix +++ b/services/gerrit/www.nix @@ -25,7 +25,7 @@ in # The :443 suffix is a workaround for https://b.tvl.fyi/issues/88. proxy_set_header Host $host:443; # Gerrit can throw a lot of data. - proxy_buffering on; + proxy_buffering off; # NGINX should not give up super fast. Things can take time. proxy_read_timeout 3600; }