From 09bcff080cb789dbf041651ffd16b6616e99b976 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Thu, 6 Mar 2025 23:01:01 +0800 Subject: feat(git): add private repo support. --- services/templates/cgitrc.template | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'services/templates') diff --git a/services/templates/cgitrc.template b/services/templates/cgitrc.template index 277bb11..7e05ead 100644 --- a/services/templates/cgitrc.template +++ b/services/templates/cgitrc.template @@ -1,6 +1,8 @@ css=/git/static/cgit.css logo=/git/static/cgit.png root-title=crupest Git Repos +source-filter=/usr/lib/cgit/filters/syntax-highlighting.py +about-filter=/usr/lib/cgit/filters/about-formatting.sh enable-http-clone=0 enable-commit-graph=1 @@ -8,13 +10,12 @@ enable-index-links=1 enable-index-owner=0 enable-log-filecount=1 enable-log-linecount=1 -section-from-path=1 - -clone-url=@@CRUPEST_ROOT_URL@@git/$CGIT_REPO_URL +enable-git-config=1 snapshots=tar.gz tar.bz2 zip -source-filter=/usr/lib/cgit/filters/syntax-highlighting.py -about-filter=/usr/lib/cgit/filters/about-formatting.sh + readme=:README.md readme=:README -scan-path=/git/ +clone-prefix=@@CRUPEST_ROOT_URL@@git/ +section-from-path=1 +scan-path=/git/repos/ -- cgit v1.2.3