aboutsummaryrefslogtreecommitdiff
path: root/cgitrc
blob: eba27b00543b94456b7ab447be84435709c59d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Enable repo-specific git config
enable-git-config=1

# Root title and description
root-title=Tablaster's git repositories
root-desc=Git repositories hosted at tablaster.dev

# Include footer
footer=/var/www/html/cgit/cgi/footer.html

# Set virtual root
virtual-root=/

# Remove .git suffix from displayed repos
remove-suffix=1

# Show extra links for each repository on the index page
# enable-index-links=1

# Show number of affected files per commit on the log pages
enable-log-filecount=1

# Show number of added/removed lines per commit on the log pages
enable-log-linecount=1

# List of common mimetypes
mimetype.gif=image/gif
mimetype.html=text/html
mimetype.jpg=image/jpeg
mimetype.jpeg=image/jpeg
mimetype.pdf=application/pdf
mimetype.png=image/png
mimetype.svg=image/svg+xml

# HTML file to include in the page head
#head-include=/var/www/html/cgit/head_include.html

# External filter for formatting the "about" section of repositories
about-filter=/var/www/html/cgit/filters/about-formatting.sh

# Search for these files in the root of the default branch of repositories ti render the about page
readme=:README.md
readme=:readme.md
readme=:README.mkd
readme=:readme.mkd
readme=:README.rst
readme=:readme.rst
readme=:README.html
readme=:readme.html
readme=:README.htm
readme=:readme.htm
readme=:README.txt
readme=:readme.txt
readme=:README
readme=:readme

# Path to the project list
project-list=/var/lib/git/projects.list

# Path to scan for git repositories
scan-path=/var/lib/git/repositories