summaryrefslogtreecommitdiffstats
path: root/roles/cgit/templates/cgitrc.j2
blob: 562a0020c8ea01cf576902fddce2c37168179521 (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
#
# cgit config
# see cgitrc(5) for details

css=/cgit.css
logo=/cgit.png

# source highlighting
source-filter=/usr/lib/cgit/filters/syntax-highlighting.py

# Display README.md files (located with your repos) in HTML (like github)
readme=:README.md
readme=:README
about-filter=/usr/lib/cgit/filters/about-formatting.sh

# Specify some default clone urls using macro expansion
clone-url=https://$HTTP_HOST/$CGIT_REPO_URL git://{{ gitolite_clone }}:$CGIT_REPO_URL ssh://{{ gitolite_clone }}/$CGIT_REPO_URL

# enable git blame
# not implemented yet in v1.1
#enable-blame=1

# use information from gitolite
enable-git-config=1

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

# Enable ASCII art commit history graph on the log pages
enable-commit-graph=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

# enable mimetypes
enable-html-serving=1

# enable stats page
max-stats=year

# no .git suffix please
remove-suffix=1

# common mimetypes
mimetype-file=/etc/mime.types

# download repo as tar.*
snapshots=tar.gz tar.xz zip

project-list=/srv/git/projects.list
scan-path=/srv/git/repositories

virtual-root=/