aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/tammi/cgitrc
blob: caa011d295c3281479b282d0cd9ca11adaea997b (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
#
# cgit config
#

# The defaults
#css=/cgit.css
#logo=/cgit.png
cache-size=0
branch-sort=age
commit-sort=date
max-stats=quarter
root-title=tammi.cc git repositories
robots=noindex, nofollow
snapshots=tar.zst
clone-url=ssh://git@tammi.cc:/git/$CGIT_REPO_URL.git
virtual-root=/

# options
enable-index-owner=true
enable-index-links=true
enable-commit-graph=1
enable-log-filecount=1
enable-log-linecount=1
enable-html-serving=1
enable-http-clone=1
enable-blame=1

# mimes
mimetype.gif=image/gif
mimetype.html=text/html
mimetype.jpg=image/jpeg
mimetype.webp=image/webp
mimetype.jpeg=image/jpeg
mimetype.pdf=application/pdf
mimetype.png=image/png
mimetype.svg=image/svg+xml

# plugins
head-include=/usr/local/lib/cgit/head_include.html
source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.js
about-filter=/usr/local/lib/cgit/filters/about-formatting-custom.sh
auth-filter=lua:/usr/local/lib/cgit/filters/simple-authentication-modified.lua

# repositories
readme=:README.adoc
readme=:README.md
remove-suffix=1