aboutsummaryrefslogtreecommitdiffstats
path: root/image/cgitrc
blob: d90b1d59b98b6b2d907bed90e2f36680fbbc868a (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#
# cgit config
# see https://man.archlinux.org/man/cgitrc.5
#

# Enable caching of up to 1000 output entries
cache-size=1000

# The clone prefixes, used to show the user where to clone from
clone-prefix=https://git.estrogen.zone ssh://git@git.estrogen.zone

# Use /cgit.css or https://git.estrogen.zone/cgit-assets.git/plain/cgit.css if you don't have this repo on your cgit
css=/cgit-assets.git/plain/cgit.css

# Specify your own icon's URL here
logo=/cgit.png

# Add a cgit favicon
#favicon=/favicon.ico

# Allow http transport git clone
enable-http-clone=1

# Use git configuration files
enable-git-config=1

# The maximum duration of the stats tab
max-stats=month

# Enable the commit graph
enable-commit-graph=1

# Log should specify counts
enable-log-linecount=1
enable-log-filecount=1

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

# Enable blame page and create links to it from tree page
enable-blame=1

# The title of the root
root-title=git.estrogen.zone
# The description rendered under it
root-desc=uhhh idk

# Include some more info about git.estrogen.zone on the index page
#root-readme=/var/www/htdocs/about.html

# if you do not want that webcrawler (like google) index your site
robots=index, nofollow

readme=:README.rst
readme=:readme.rst
readme=:README.md
readme=:readme.md
readme=:README.txt
readme=:readme.txt
readme=:README
readme=:readme
#readme=:README.html
#readme=:readme.html

# if cgit messes up links, use a virtual-root. For example, cgit.example.org/ has this value:
virtual-root=/

# Allow download of tar.gz, tar.bz2, tar.lz and zip-files
snapshots=tar.lz tar.gz tar.bz2 zip

# Specify mime types
mimetype.git=image/git
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
mimetype.ts=text/typescript
mimetype.js=text/javascript
mimetype.css=text/css
mimetype.ascii=text/vnd.ascii-art
# text/plain is used to prevent XSS
mimetype.html=text/plain

# Show libravatar - assumes you're using an avatar handler that handles this properly
email-filter=lua:/usr/lib/cgit/filters/extra/email-libravatar.lua
# If you prefer upstream's:
# email-filter=lua:/usr/lib/cgit/filters/email-libravatar.lua

# TODO: Create commit filter
commit-filter=exec:/usr/bin/markdown-tool

# Handle the about pages
about-filter=exec:/usr/lib/cgit/filters/extra/about-formatting
# Handle syntax highlighting
source-filter=exec:/usr/lib/cgit/filters/extra/syntax-highlighting.sh

project-list=/var/lib/git/projects.list
scan-path=/var/lib/git/repositories

##
## List of repositories, if you don't wish to use scanning (I RECOMMEND STRONGLY USING SCANNING!!).
## PS: Any repositories listed when repo.group is unset will not be
##     displayed under a group heading
## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos')
##      and included like this:
##        include=/etc/cgitrepos
##

####
# section=my repo
# 
#repo.url=testing
#repo.path=/var/lib/git/testing.git
#repo.desc=Testing repo created by Gitolite
#repo.owner=admin@mynetwork.com
#