diff --git a/cgitrc b/cgitrc index 7a57422..7604837 100644 --- a/cgitrc +++ b/cgitrc @@ -7,6 +7,7 @@ logo=/cgit.png favicon=/favicon.png root-readme=/usr/share/cgit/about.md +cache-size=1000 enable-http-clone=1 enable-commit-graph=1 enable-log-filecount=1 @@ -17,8 +18,13 @@ max-stats=quarter repository-sort=age remove-suffix=1 -# Use markdown READMEs and about page -about-filter=markdown +# Search the following paths for a repo's about page +readme=:README.md +readme=:README.txt +readme=:README + +# Use the appropriate tool for rendering about pages +about-filter=/usr/lib/cgit/filters/about-formatting.sh # Specify the title/description of the root page root-title=git.paritybit.ca @@ -36,11 +42,10 @@ 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 +# Get section names from subdirectories section-from-path=1 - # Auto-discover repos from this directory -scan-path=/srv/git +scan-path=/srv/git/ # Generate URLs relative to cgit's root virtual-root=/