aboutsummaryrefslogtreecommitdiff
path: root/roles/git/files/gitolite-cgit/etc
diff options
context:
space:
mode:
Diffstat (limited to 'roles/git/files/gitolite-cgit/etc')
-rw-r--r--roles/git/files/gitolite-cgit/etc/cgitrc16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/git/files/gitolite-cgit/etc/cgitrc b/roles/git/files/gitolite-cgit/etc/cgitrc
index e60b893..b84b441 100644
--- a/roles/git/files/gitolite-cgit/etc/cgitrc
+++ b/roles/git/files/gitolite-cgit/etc/cgitrc
@@ -1,8 +1,13 @@
# cgitrc(5)
+# Enable caching of html files to /var/cache/cgit (unit is objects).
+cache-size=1000
+
root-title=git.memzero.de
root-desc=private git repostitory
+clone-url=https://git.memzero.de/$CGIT_REPO_URL ssh://git.memzero.de/$CGIT_REPO_URL git@git.memzero.de:$CGIT_REPO_URL
+
virtual-root=/
enable-blame=1
@@ -23,6 +28,17 @@ about-filter=/usr/lib/cgit/filters/about-formatting.sh
remove-suffix=1
section-from-path=1
+# -- About page
+
+# Global default files to look for to render the repos about page (first match taken).
+#
+# Leading colon means to search for <readme> file relative from remote HEAD
+# (aka default branch).
+# Cgit allows to specify a different refspec (<ref>:<readme>) to render the
+# about page, however this is mainly useful for repo specific settings.
+readme=:README.md
+readme=:README.txt
+
# -- Repositories
#
# Scan *scan-path* for repositories. Since *project-list* is specified before,