Enable about pages and cache

This commit is contained in:
Jake Bauer 2020-07-06 03:54:16 -04:00
parent be9fc481c1
commit 337f67743e
1 changed files with 10 additions and 5 deletions

15
cgitrc
View File

@ -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=/