aboutsummaryrefslogtreecommitdiffstats
path: root/roles/cgit/templates/cgitrc.j2
blob: 6e8965adb0cf669745c664c0953af7d0b2a3ff41 (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
# managed by Ansible

# readme
readme=:README.md
readme=:README.org
readme=:README
readme=:.README.md
readme=:.README
about-filter=/bin/about-filter.sh

# 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

# features
enable-commit-graph=1
enable-http-clone=1
enable-index-links=1
enable-blame=1
enable-git-config=1
enable-log-linecount=1
enable-log-filecount=1
max-stats=quarter
robots=noindex, nofollow
localtime=1

# cache
cache-root={{ cgit__cache_dir | replace(cgit__chroot_dir, '') }}
cache-size={{ cgit__cache_size }}

# git
clone-url={{ cgit__clone_urls | join(' ') }}

# instance id
root-title={{ cgit__title }}
root-desc={{ cgit__description }}
root-readme={{ cgit__readme_url }}

# visuals
css={{ cgit__css_url }}
logo={{ cgit__logo_url }}
favicon={{ cgit__favicon_url }}
footer={{ cgit__footer_file | replace(cgit__chroot_dir, '') }}

# archives
snapshots=tar.gz

# sections
section-from-path=1
section-sort=1
scan-path={{ cgit__repositories_dir | replace(cgit__chroot_dir, '') }}
remember that computers suck.