cgitrc (view raw)
1##
2## cgitrc: template for /etc/cgitrc
3##
4
5
6## Uncomment and set to 1 to deactivate caching of generated pages. Mostly
7## usefull for testing.
8#nocache=0
9
10
11## Enable/disable snapshots by default. This can be overridden per repo
12#snapshots=0
13
14
15## Specify a root for virtual urls. This makes cgit generate urls like
16##
17## http://localhost/git/repo/log/?id=master
18##
19## instead of
20##
21## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master
22##
23## For this to work with apache, rewrite rules must be added to httpd.conf,
24## possibly looking something like this:
25##
26## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA]
27## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA]
28## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA]
29##
30## This setting is disabled by default.
31#virtual-root=/git
32
33
34## Set the title printed on the root page
35#root-title=Git repository browser
36
37
38## Link to css file
39#css=/cgit/cgit.css
40
41
42## Link to logo file
43#logo=/cgit/git-logo.png
44
45
46## Url loaded when clicking the logo
47#logo-link=http://www.kernel.org/pub/software/scm/git/docs/
48
49
50## Url loaded when clicking a submodule link
51#module-link=./?repo=%s&page=commit&id=%s
52
53
54## Number of chars shown of commit subject message (in log view)
55#max-message-length=60
56
57
58## Number of commits per page in log view
59#max-commit-count=50
60
61
62## Root of cached output
63#cache-root=/var/cache/cgit
64
65
66##
67## Time-To-Live settings: specifies how long (in minutes) different pages
68## should be cached (0 for instant expiration, -1 for immortal pages)
69##
70
71## ttl for root page
72#cache-root-ttl=5
73
74## ttl for repo summary page
75#cache-repo-ttl=5
76
77## ttl for other dynamic pages
78#cache-dynamic-ttl=5
79
80## ttl for static pages (addressed by SHA-1)
81#cache-static-ttl=-1
82
83
84
85## Example repository entry. Required values are repo.url and repo.path (each
86## repository section must start with repo.url).
87#repo.url=cgit
88#repo.name=cgit
89#repo.desc=the caching cgi for git
90#repo.path=/pub/git/cgit
91#repo.owner=Lars Hjemli
92#repo.snapshots=1 # override a sitewide snapshot-setting
93#repo.module-link=/git/%s/commit/?id=%s # override the standard module-link