aboutsummaryrefslogtreecommitdiff
path: root/services/templates/cgit/cgitrc.template
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-03-07 19:15:31 +0800
committerYuqian Yang <crupest@crupest.life>2025-03-07 19:44:36 +0800
commit3d3979934da0cfd514a0ef900f0f6fb573ceb917 (patch)
tree4ceece0bcadb6dce18e29a02af6a6ba2d30df242 /services/templates/cgit/cgitrc.template
parent2c26c4d44142dc1a4739eb28b0d8077f37161a72 (diff)
downloadcrupest-3d3979934da0cfd514a0ef900f0f6fb573ceb917.tar.gz
crupest-3d3979934da0cfd514a0ef900f0f6fb573ceb917.tar.bz2
crupest-3d3979934da0cfd514a0ef900f0f6fb573ceb917.zip
fix(git): public/private repo problem, enable cgit for private.
Diffstat (limited to 'services/templates/cgit/cgitrc.template')
-rw-r--r--services/templates/cgit/cgitrc.template26
1 files changed, 26 insertions, 0 deletions
diff --git a/services/templates/cgit/cgitrc.template b/services/templates/cgit/cgitrc.template
new file mode 100644
index 0000000..ed581bd
--- /dev/null
+++ b/services/templates/cgit/cgitrc.template
@@ -0,0 +1,26 @@
+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
+enable-index-links=1
+enable-index-owner=0
+enable-log-filecount=1
+enable-log-linecount=1
+enable-git-config=1
+snapshots=tar.gz tar.bz2 zip
+
+readme=:README.md
+readme=:README
+
+clone-prefix=@@CRUPEST_ROOT_URL@@git
+section-from-path=1
+scan-path=/git/repos/public
+
+strict-export=cgit-export
+section-from-path=-1
+project-list=/app/cgit/private-list
+scan-path=/git/repos