summaryrefslogtreecommitdiffstats
path: root/cgit/cgitrc
blob: 85597e38bc52495adcfdec4a65b3a50a6638b3bd (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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
##### cgit configuration file #####
# https://git.zx2c4.com/cgit/tree/cgitrc.5.txt
##### format: NAME=VALUE #####

#### GLOBAL SETTINGS ####

#### Web Configuration ####
css=/cgit.css
logo=/logo.svg
# logo-link=
favicon=/favicon.ico
virtual-root=/

# Prohibit search engine index
robots=noindex, nofollow

# Personalization
root-title=Your Git Repository
root-desc=my personal minimal and cute git server.
head-include=/var/www/cgit/head-include.html
footer=/var/www/cgit/footer.html
root-readme=/var/www/cgit/about.html

#### Cache Configuration ####
cache-about-ttl=45
cache-dynamic-ttl=3
cache-repo-ttl=10
cache-size=1000
cache-root=/var/cache/cgit
cache-root-ttl=3
cache-scanrc-ttl=10
cache-snapshot-ttl=30
cache-static-ttl=15

#### Filter API ####
# owner-filter=
# auth filter=
source-filter=/usr/local/share/cgit/filters/syntax-highlighting.py
commit-filter=/usr/local/share/cgit/filters/commit-links.sh
email-filter=lua:/usr/local/share/cgit/filters/email-libravatar-korg.lua
# email-filter=lua:/usr/local/share/cgit/filters/email-libravatar.lua
# email-filter=lua:/usr/local/share/cgit/filters/email-gravatar.lua
about-filter=/usr/local/share/cgit/filters/about-formatting.sh
readme=:README.md
readme=:readme.md
readme=:README.txt
readme=:readme.txt
readme=:README
readme=:readme

#### CGIT Server Configuration ####

# local-time=0
# noplainemail=0
# noheader=

# With Smart HTTP Git Clone
clone-url=https://git.xvo.es/$CGIT_REPO_URL

# Disable dumb HTTP endpoint Git Clone
enable-http-clone=0

enable-index-owner=1
enable-index-links=0
enable-blame=1
enable-log-filecount=1
enable-log-linecount=1
enable-commit-graph=1
# enable-tree-linenumbers=1
# enable-follow-links=0
# enable-remote-branches=0
# enable-git-config=0
# enable-html-serving=0

# Sort Configuration
branch-sort=age
case-sensitive-sort=1
commit-sort=date

# Summary Configuration
summary-branches=5
summary-log=15
summary-tags=5
snapshots=tar.gz zip
max-atom-items=15
max-blob-size=1024
max-commit-count=50
max-message-length=100
max-repo-count=40
max-repodesc-length=60
max-stats=year

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

# Remove the .git suffix
remove-suffix=1
scan-path=/home/git

#### REPOSITORY SETTINGS ####

# section-from-path=1
# project-list=/path/to/projects.list
# enable-filter-overrides=

# For Each Single Repository
# repo.name=
# repo.defbranch=
# repo.branch-sort=
# repo.hide=
# repo.homepage=
# repo.ignore=
# repo.desc=
# repo.owner=
# repo.path=
# repo.url=
# repo.clone-url=
# repo.logo=
# repo.logo-link=
# repo.readme=
# repo.section=
# repo.snapshots=
# repo.owner-filter=
# repo.source-filter=
# repo.about-filter=
# repo.email-filter=
# repo.commit-filter=
# repo.commit-sort=
# repo.enable-blame=
# repo.enable-commit-graph=
# repo.enable-html-serving=
# repo.enable-log-filecount=
# repo.enable-log-linecount=
# repo.enable-remote-branches=
# repo.enable-subject-links=
# repo.extra-head-content=
# repo.module-link=
# repo.max-stats=
# repo.snapshot-prefix=