aboutsummaryrefslogtreecommitdiff
path: root/cgit/cgitrc
blob: 7c735347bba04e74389d276eed0dde0390d99fcf (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
root-title=Akshay's git repos
root-desc=this is where my cooler projects live
root-readme=/usr/share/webapps/cgit/ediblemonad/README.md

# Theme
css=/ediblemonad/cgit.css
logo=/ediblemonad/logo.png
favicon=/favicon.ico
head-include=/usr/share/webapps/cgit/ediblemonad/header.html
footer=/usr/share/webapps/cgit/ediblemonad/footer.html

# TODO: submodule links
# module-link=/cgit/submodule/%s/commit?id=%s

source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
about-filter=/usr/lib/cgit/filters/ediblemonad/about.sh

# Mimetypes for plain files
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

# Search for these files in the root of the default branch of repositories
# for coming up with 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
readme=:INSTALL.md
readme=:install.md
readme=:INSTALL.mkd
readme=:install.mkd
readme=:INSTALL.rst
readme=:install.rst
readme=:INSTALL.html
readme=:install.html
readme=:INSTALL.htm
readme=:install.htm
readme=:INSTALL.txt
readme=:install.txt
readme=:INSTALL
readme=:install

# Cache
cache-root=/var/cache/cgit
cache-size=0

enable-index-links=0
enable-index-owner=0
enable-remote-branches=1
enable-log-filecount=1
enable-log-linecount=1
enable-tree-linenumbers=1
enable-git-config=1
enable-commit-graph=1
enable-follow-links=1
enable-http-clone=1
enable-html-serving=1
snapshots=tar.xz zip
remove-suffix=1
repository-sort=age
# side-by-side-diffs=1

robots=index, nofollow
virtual-root=/
section-from-path=0
max-repo-count=50

# Scan path has to be last
scan-path=/srv/git