cgit-config

My cgit configuration.
git clone https://git.sr.ht/~jbauer/cgit-config
Log | Files | Refs | LICENSE

commit 9090aef8e3f87f455fb35bc051079289aa9d3390
parent 11fae340cf44562aba0b6d435d9d0d9763fea7c3
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon,  6 Jul 2020 02:44:34 -0400

Add repo sections to cgitrc

Diffstat:
Mcgitrc | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/cgitrc b/cgitrc @@ -1,3 +1,4 @@ +# # cgit config # see cgitrc(5) for details @@ -9,6 +10,7 @@ enable-http-clone=1 enable-commit-graph=1 enable-log-filecount=1 enable-log-linecount=1 +enable-subject-links=1 max-stats=quarter repository-sort=age remove-suffix=1 @@ -29,13 +31,16 @@ snapshots=tar.gz tar.bz2 zip # Use python-pygments for syntax highlighting source-filter=/usr/lib/cgit/filters/syntax-highlighting.py +# Use the folder name above the git repo folder as a section name +section-from-path=1 + # Auto-discover repos from this directory scan-path=/srv/git # Generate URLs relative to cgit's root virtual-root=/ -# Some common mimetypes for serving raw files +# Some common mimetypes for serving files raw mimetype.gif=image/gif mimetype.html=text/html mimetype.jpg=image/jpeg