]> git.cameronkatri.com Git - cgit.git/blob - cgitrc
Add support for prefix and gitsrc arguments to 'make'
[cgit.git] / cgitrc
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 ## Specify a root for virtual urls. This makes cgit generate urls like
12 ##
13 ## http://localhost/git/repo/log/?id=master
14 ##
15 ## instead of
16 ##
17 ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master
18 ##
19 ## For this to work with apache, rewrite rules must be added to httpd.conf,
20 ## possibly looking something like this:
21 ##
22 ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA]
23 ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA]
24 ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA]
25 ##
26 ## This setting is disabled by default.
27 #virtual-root=/git
28
29
30 ## Set the title printed on the root page
31 #root-title=Git repository browser
32
33
34 ## Link to css file
35 #css=/cgit/cgit.css
36
37
38 ## Link to logo file
39 #logo=/cgit/git-logo.png
40
41
42 ## Url loaded when clicking the logo
43 #logo-link=http://www.kernel.org/pub/software/scm/git/docs/
44
45
46 ## Number of chars shown of commit subject message (in log view)
47 #max-message-length=60
48
49
50 ## Root of cached output
51 #cache-root=/var/cache/cgit
52
53
54 ##
55 ## Time-To-Live settings: specifies how long (in minutes) different pages
56 ## should be cached (0 for instant expiration, -1 for immortal pages)
57 ##
58
59 ## ttl for root page
60 #cache-root-ttl=5
61
62 ## ttl for repo summary page
63 #cache-repo-ttl=5
64
65 ## ttl for other dynamic pages
66 #cache-dynamic-ttl=5
67
68 ## ttl for static pages (addressed by SHA-1)
69 #cache-static-ttl=-1
70
71
72
73 ## Example repository entry. Required values are repo.url and repo.path (each
74 ## repository section must start with repo.url).
75 #repo.url=cgit
76 #repo.name=cgit
77 #repo.desc=the caching cgi for git
78 #repo.path=/pub/git/cgit
79 #repo.owner=Lars Hjemli