From fcfd097e658a2c44bb1a6950d04ecd4c508b3c0f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 11 Jul 2022 11:15:14 +0000 Subject: refactor(ops/cgit): make user configurable on whitby, cgit runs as the gerrit user to get access to serving gerrit's repositories directly. on other machines (e.g. sanduny) this isn't necessary, as we have a world-readable depot replica. Change-Id: Ibf7e7cc08e5909e0fa182e561ab0cb472188edcb Reviewed-on: https://cl.tvl.fyi/c/depot/+/5932 Tested-by: BuildkiteCI Reviewed-by: sterni --- ops/machines/whitby/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ops/machines/whitby') diff --git a/ops/machines/whitby/default.nix b/ops/machines/whitby/default.nix index ea9f25accba8..940cfc910a24 100644 --- a/ops/machines/whitby/default.nix +++ b/ops/machines/whitby/default.nix @@ -413,7 +413,11 @@ in nixery.enable = true; # Run cgit & josh to serve git - cgit.enable = true; + cgit = { + enable = true; + user = "git"; # run as the same user as gerrit + }; + josh.enable = true; # Configure backups to GleSYS -- cgit 1.4.1