aboutsummaryrefslogtreecommitdiff
path: root/services/templates
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
commit09bcff080cb789dbf041651ffd16b6616e99b976 (patch)
treeafd70c932b1d3fcc2c7ee6b4b4dba3d5b2924290 /services/templates
parentc4b66635e46d3a38e845dc7a6219a6acfff364bc (diff)
downloadcrupest-09bcff080cb789dbf041651ffd16b6616e99b976.tar.gz
crupest-09bcff080cb789dbf041651ffd16b6616e99b976.tar.bz2
crupest-09bcff080cb789dbf041651ffd16b6616e99b976.zip
feat(git): add private repo support.
Diffstat (limited to 'services/templates')
-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/