all repos — cgit @ 3c388a3bf80d51b95b6bdfbf133a7f732c3d80b9

a hyperfast web frontend for git written in c

cgitrc (view raw)

 1##
 2## cgitrc: template for /etc/cgitrc
 3##
 4
 5
 6## root folder for git repos
 7#root=/usr/src/git
 8
 9
10## base for virtual urls. If specified, rewrite rules must be added to 
11## httpd.conf. Possible rules for /git/ when cgit.cgi is accessed as /cgit.cgi:
12##
13##   RewriteRule ^/git/$ /cgit.cgi                            [L,QSA]
14##   RewriteRule ^/git/([^/]+)/$ /cgit.cgi?r=$1               [L,QSA]
15##   RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit.cgi?r=$1&p=$2  [L,QSA]
16##
17#virtual-root=/git
18
19
20## page title for the root page (repo listing)
21#root-title=Git repository browser
22
23
24## link to css file
25#css=/cgit.css
26
27
28## link to logo file
29#logo=/git-logo.png
30
31
32## url loaded when clicking the logo
33#logo-link=http://www.kernel.org/pub/software/scm/git/docs/
34
35
36## set number of initial chars to show of commit subject message in log views
37#max-message-length=60
38
39
40## Set to 1 to deactivate caching of generated pages
41#nocache=0
42
43
44## root path for cached output
45#cache-root=/var/cache/cgit
46
47
48##
49## Time-To-Live settings: specify how long (in minutes) different pages should
50## be cached. Specify 0 for instant expiration and -1 for immortal pages
51##
52
53## ttl for root page (repo listing)
54#cache-root-ttl=5
55
56## ttl for repo summary page
57#cache-repo-ttl=5
58
59## ttl for other dynamic pages 
60#cache-dynamic-ttl=5
61
62## ttl for static pages (addressed by SHA-1)
63#cache-static-ttl=-1