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 ## Enable/disable extra links to summary/log/tree per repo on index page
19 ## Enable/disable display of 'number of files changed' in log view
20 #enable-log-filecount=0
23 ## Enable/disable display of 'number of lines changed' in log view
24 #enable-log-linecount=0
27 ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum
28 ## number of commits that should be displayed
32 ## Specify a root for virtual urls. This makes cgit generate urls like
34 ## http://localhost/git/repo/log/?id=master
38 ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master
40 ## For this to work with apache, rewrite rules must be added to httpd.conf,
41 ## possibly looking something like this:
43 ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA]
44 ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA]
45 ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA]
47 ## This setting is disabled by default.
51 ## Set the title printed on the root page
52 #root-title=Git repository browser
60 #logo=/cgit/git-logo.png
63 ## Url loaded when clicking the logo
64 #logo-link=http://www.kernel.org/pub/software/scm/git/docs/
67 ## Url loaded when clicking a submodule link
68 #module-link=./?repo=%s&page=commit&id=%s
71 ## Number of chars shown of repo description (in repolist view)
72 #max-repodesc-length=60
75 ## Number of chars shown of commit subject message (in log view)
76 #max-message-length=60
79 ## Number of commits per page in log view
83 ## Root of cached output
84 #cache-root=/var/cache/cgit
87 ## Include another config-file
88 #include=/var/cgit/repolist
91 ## Time-To-Live settings: specifies how long (in minutes) different pages
92 ## should be cached (0 for instant expiration, -1 for immortal pages)
98 ## ttl for repo summary page
101 ## ttl for other dynamic pages
104 ## ttl for static pages (addressed by SHA-1)
109 ## Example repository entry. Required values are repo.url and repo.path (each
110 ## repository section must start with repo.url).
113 #repo.desc=the caching cgi for git
114 #repo.path=/pub/git/cgit
115 #repo.owner=Lars Hjemli
116 #repo.snapshots=1 # override a sitewide snapshot-setting
117 #repo.enable-log-filecount=0 # override the default filecount setting
118 #repo.enable-log-linecount=0 # override the default linecount setting
119 #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link
120 #repo.readme=info/web/readme # specify a file to include on summary page