2 ## cgitrc: template for /etc/cgitrc
6 ## Uncomment and set to 1 to deactivate caching of generated pages. Mostly
7 ## usefull for testing.
11 ## Set allowed snapshot types by default. Can be overridden per repo
12 # can be any combination of zip/tar.gz/tar.bz2/tar
16 ## Enable/disable extra links to summary/log/tree per repo on index page
20 ## Enable/disable display of 'number of files changed' in log view
21 #enable-log-filecount=0
24 ## Enable/disable display of 'number of lines changed' in log view
25 #enable-log-linecount=0
28 ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum
29 ## number of commits that should be displayed
33 ## Specify a root for virtual urls. This makes cgit generate urls like
35 ## http://localhost/git/repo/log/?id=master
39 ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master
41 ## For this to work with apache, rewrite rules must be added to httpd.conf,
42 ## possibly looking something like this:
44 ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA]
45 ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA]
46 ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA]
48 ## This setting is disabled by default.
52 ## Set the title printed on the root page
53 #root-title=Git repository browser
61 #logo=/cgit/git-logo.png
64 ## Url loaded when clicking the logo
65 #logo-link=http://www.kernel.org/pub/software/scm/git/docs/
68 ## Url loaded when clicking a submodule link
69 #module-link=./?repo=%s&page=commit&id=%s
72 ## Number of chars shown of repo description (in repolist view)
73 #max-repodesc-length=60
76 ## Number of chars shown of commit subject message (in log view)
77 #max-message-length=60
80 ## Number of commits per page in log view
84 ## Root of cached output
85 #cache-root=/var/cache/cgit
88 ## Include another config-file
89 #include=/var/cgit/repolist
92 ## Time-To-Live settings: specifies how long (in minutes) different pages
93 ## should be cached (0 for instant expiration, -1 for immortal pages)
99 ## ttl for repo summary page
102 ## ttl for other dynamic pages
105 ## ttl for static pages (addressed by SHA-1)
110 ## Example repository entry. Required values are repo.url and repo.path (each
111 ## repository section must start with repo.url).
114 #repo.desc=the caching cgi for git
115 #repo.path=/pub/git/cgit
116 #repo.owner=Lars Hjemli
117 #repo.snapshots=tar.bz2 # override a sitewide snapshot-setting
118 #repo.enable-log-filecount=0 # override the default filecount setting
119 #repo.enable-log-linecount=0 # override the default linecount setting
120 #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link
121 #repo.readme=info/web/readme # specify a file to include on summary page