Add repo sections to cgitrc
This commit is contained in:
parent
11fae340cf
commit
9090aef8e3
7
cgitrc
7
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
|
||||
|
|
Loading…
Reference in New Issue