From 2a764503bef17781bdd5d57ec041208c040eb127 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 16 Jun 2020 18:28:36 +0100 Subject: [PATCH] fix(monorepo-gerrit): Don't expire sessions unreasonably quickly Changes the default session timeout to 3 months, which is a lot more reasonable than the default of 12 hours. See https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#cache.name.maxAge Change-Id: I33bce8b072d64ab07f1b954c11068595dca5def7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/431 Reviewed-by: riking --- ops/nixos/monorepo-gerrit.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/ops/nixos/monorepo-gerrit.nix b/ops/nixos/monorepo-gerrit.nix index ac20b3cb4..fe3be6d72 100644 --- a/ops/nixos/monorepo-gerrit.nix +++ b/ops/nixos/monorepo-gerrit.nix @@ -29,6 +29,7 @@ in { log.textLogging = false; sshd.advertisedAddress = "code.tvl.fyi:29418"; hooks.path = "${gerritHooks}"; + cache.web_sessions.maxAge = "3 months"; # Configures gerrit for being reverse-proxied by nginx as per # https://gerrit-review.googlesource.com/Documentation/config-reverseproxy.html