aboutsummaryrefslogtreecommitdiff
path: root/services/templates/cgitrc.template
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-03-06 23:01:01 +0800
committerYuqian Yang <crupest@crupest.life>2025-03-06 23:10:56 +0800
commit4305a92ee1323eecf737d31b1c3fc5167646d304 (patch)
tree69b545fe487b5128b5d90358091e5bc024bfc5d0 /services/templates/cgitrc.template
parent22bf952531196f473c52c5a8eb056f88a4c9f047 (diff)
downloadcrupest-4305a92ee1323eecf737d31b1c3fc5167646d304.tar.gz
crupest-4305a92ee1323eecf737d31b1c3fc5167646d304.tar.bz2
crupest-4305a92ee1323eecf737d31b1c3fc5167646d304.zip
feat(git): add private repo support.
Diffstat (limited to 'services/templates/cgitrc.template')
-rw-r--r--services/templates/cgitrc.template13
1 files changed, 7 insertions, 6 deletions
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/