2 ## cgitrc: template for /etc/cgitrc
6 ## Uncomment and set to 1 to deactivate caching of generated pages. Mostly
7 ## usefull for testing.
11 ## Enable/disable snapshots by default. This can be overridden per repo
15 ## Specify a root for virtual urls. This makes cgit generate urls like
17 ## http://localhost/git/repo/log/?id=master
21 ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master
23 ## For this to work with apache, rewrite rules must be added to httpd.conf,
24 ## possibly looking something like this:
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]
30 ## This setting is disabled by default.
34 ## Set the title printed on the root page
35 #root-title=Git repository browser
43 #logo=/cgit/git-logo.png
46 ## Url loaded when clicking the logo
47 #logo-link=http://www.kernel.org/pub/software/scm/git/docs/
50 ## Number of chars shown of commit subject message (in log view)
51 #max-message-length=60
54 ## Root of cached output
55 #cache-root=/var/cache/cgit
59 ## Time-To-Live settings: specifies how long (in minutes) different pages
60 ## should be cached (0 for instant expiration, -1 for immortal pages)
66 ## ttl for repo summary page
69 ## ttl for other dynamic pages
72 ## ttl for static pages (addressed by SHA-1)
77 ## Example repository entry. Required values are repo.url and repo.path (each
78 ## repository section must start with repo.url).
81 #repo.desc=the caching cgi for git
82 #repo.path=/pub/git/cgit
83 #repo.owner=Lars Hjemli
84 #repo.snapshots=1 # override a sitewide snapshot-setting