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
commit03c60c0b8d6b7f7e114ccafa434ae537c5ebf3b3 (patch)
tree5cb5b240c03ca3920fe05fb6253288235b8be16e /services/templates/cgitrc.template
parent0b9e6e5b0ea8443e597b2d836ddd9903cb237d68 (diff)
downloadcrupest-03c60c0b8d6b7f7e114ccafa434ae537c5ebf3b3.tar.gz
crupest-03c60c0b8d6b7f7e114ccafa434ae537c5ebf3b3.tar.bz2
crupest-03c60c0b8d6b7f7e114ccafa434ae537c5ebf3b3.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/