all repos — cgit @ 8fb2f056961e577a039ae185d89ab8e2d2840b9e

a hyperfast web frontend for git written in c

cgitrc (view raw)

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