summaryrefslogtreecommitdiff
path: root/cgitrc
blob: b880e38861eccfd73175abaec1adaf9c4888b3ab (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
# URL prefix
virtual-root=/

# homepage 
root-title=Git Server
root-desc=description goes here
max-repodesc-length=80

# remove ".git" suffix 
remove-suffix=1

# html
#favicon=https://yoursite.com/favicon.png
#logo=https://yoursite.com/logo.png
head-include=/usr/share/cgit/head.html
css=/style.css
robots=index

# log 
enable-commit-graph=1
enable-log-filecount=1
enable-log-linecount=1

# direct download
snapshots=tar.bz2 zip

# git clone
#clone-prefix=git.yoursite.com
enable-http-clone=1

# readme/about files 
readme=:README.md
readme=:readme.md
readme=:README.txt
readme=:readme.txt
readme=:README
readme=:readme

# 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

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

# repository directory
#scan-path=/path/to/repos