From c946484d822137eedbf23d5e9427d672d265e8dd Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 9 Jun 2022 18:31:24 -0700 Subject: feat(cgit): adjust configuration - list up to 150 repositories per page - limit stats to a year - snapshots are in tar.gz format Change-Id: Ifc52d47893737862d89d24b797ec28f32e5076e9 Reviewed-on: https://cl.fcuny.net/c/world/+/366 Tested-by: CI Reviewed-by: Franck Cuny --- modules/services/cgit/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules') diff --git a/modules/services/cgit/default.nix b/modules/services/cgit/default.nix index 484a708..84f8e01 100644 --- a/modules/services/cgit/default.nix +++ b/modules/services/cgit/default.nix @@ -9,6 +9,15 @@ let enable-http-clone=0 clone-url=https://cl.fcuny.net/$CGIT_REPO_URL + # I've fewer than 150 repos, all should be able to be listed on + # the main page + max-repo-count=150 + + # limit to year for the stats + max-stats=year + + snapshots=tar.gz + source-filter=${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py about-filter=${pkgs.cgit}/lib/cgit/filters/about-formatting.sh -- cgit 1.4.1