aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_cgit/templates/cgitrc.j2
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-04 07:51:05 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-11 18:36:50 -0700
commit0e702b68e777ed1f2273fcb5fa877b8fd3143188 (patch)
treebe920555ee969ba1903a69894721ae5b5aea3759 /roles/obsd_cgit/templates/cgitrc.j2
parentRemove extra / location in httpd cgit conf and remove server header (diff)
downloadsite-configs-0e702b68e777ed1f2273fcb5fa877b8fd3143188.zip
Enable more cgit features, add markdown renderer, and extra head
- I went through `man cgitrc` and enabled a bunch of the features that are off by default because they look fun. - Add `lowdown` to chroot to enable rendering markdown in the web view. - The extra head.html file ensures mobile devices don't try to render it in desktop view. I mean...it still looks awful on mobile...but it's kinda better than before.
Diffstat (limited to 'roles/obsd_cgit/templates/cgitrc.j2')
-rw-r--r--roles/obsd_cgit/templates/cgitrc.j235
1 files changed, 24 insertions, 11 deletions
diff --git a/roles/obsd_cgit/templates/cgitrc.j2 b/roles/obsd_cgit/templates/cgitrc.j2
index 9633092..c8eb111 100644
--- a/roles/obsd_cgit/templates/cgitrc.j2
+++ b/roles/obsd_cgit/templates/cgitrc.j2
@@ -1,17 +1,30 @@
-css=/cgit.css
-logo=/cgit.png
+root-title=Eugene Triguba's Git Repositories
+enable-blame=1
+enable-commit-graph=1
+enable-follow-links=1
enable-git-config=1
+enable-index-links=1
+enable-index-owner=1
+enable-log-filecount=1
+enable-log-linecount=1
+enable-remote-branches=1
+enable-subject=links=1
+enable-tree-linenumbers=1
+# Disable cgit's 'dumb' http support
+enable-http-clone=0
-cache-root={{ cgit_cache_dir }}
-cache-size=1000
+about-filter=/bin/convert-markdown
+head-include=/cgit/head.html
-# Set the title and heading of the repository index page
-root-title=Eugene Triguba's Git Repositories
-
-## Search for these files in the root of the default branch of repositories
-## for coming up with the about page:
-readme=:README
+max-atom-items=100
+max-stats=year
+remove-suffix=1
+readme=:README.md
+css=/cgit.css
+logo=/cgit.png
virtual-root=/
-scan-path={{ cgit_repos_dir }}
+scan-path=/pub/git
+cache-root=/var/www/cgit/cache
+cache-size=1000