all repos — cgit @ 952f4ece296d91b8b41f56de9e1c3bc80f94f196

a hyperfast web frontend for git written in c

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## This variable can be used to override the default value for "robots"
 12## meta-tag. If unset, the meta-tag isn't generated.
 13#robots=index, nofollow
 14
 15
 16## Set allowed snapshot types by default. Can be overridden per repo
 17# can be any combination of zip/tar.gz/tar.bz2/tar
 18#snapshots=0
 19
 20
 21## Enable/disable extra links to summary/log/tree per repo on index page
 22#enable-index-links=0
 23
 24
 25## Enable/disable display of 'number of files changed' in log view
 26#enable-log-filecount=0
 27
 28
 29## Enable/disable display of 'number of lines changed' in log view
 30#enable-log-linecount=0
 31
 32
 33## Enable/disable display of HEAD shortlog in summary view. Set it to maximum
 34## number of commits that should be displayed
 35#summary-log=0
 36
 37
 38## Restrict the number of branches printed in summary view. Set to 0 to
 39## print all branches.
 40#summary-branches=0
 41
 42
 43## Restrict the number of tags printed in summary view. Set to 0 to
 44## print all tags.
 45#summary-tags=0
 46
 47
 48## The "Idle" column on the repository index page can read a timestamp
 49## from the specified agefile (if this file cannot be found, the mtime
 50## of HEAD is used).
 51## The cgit repo on hjemli.net uses the the following command in it's
 52## post-receive hook to update the age-file:
 53##   git-for-each-ref --format="%(committerdate)" --sort=-committerdate \
 54##     --count=1 > $GIT_DIR/info/web/last-modifie
 55##
 56#agefile=info/web/last-modified
 57
 58
 59## Git detects renames, but with a limit on the number of files to
 60## consider. This option can be used to specify another limit (or -1 to
 61## use the default limit).
 62##
 63#renamelimit=-1
 64
 65
 66## Specify a root for virtual urls. This makes cgit generate urls like
 67##
 68##    http://localhost/git/repo/log/?h=branch
 69##
 70## instead of
 71##
 72##    http://localhost/cgit/cgit.cgi?url=repo/log&h=branch
 73##
 74## For this to work with apache, a rewrite rule must be added to httpd.conf,
 75## possibly looking something like this:
 76##
 77##    RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1   [L,QSA]
 78##
 79## For this to work with lighttpd, the rewrite rule should look more like this:
 80##
 81##    url.rewrite = (
 82##        "^/git/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2"
 83##    )
 84##
 85## This setting is disabled by default.
 86#virtual-root=/git
 87
 88
 89## Set the title printed on the root page
 90#root-title=Git repository browser
 91
 92
 93## Set the description printed on the root page
 94#root-desc=a fast web interface for the git dscm
 95
 96
 97## If specified, the file at this path will be included as HTML in the
 98## sidebar on the repository index page
 99#index-info=
100
101
102## If specified, the file at this path will be included as HTML above
103## the repository index
104#index-header=
105
106
107## Link to css file
108#css=/cgit/cgit.css
109
110## Link to favicon
111#favicon=/favicon.ico
112
113## Link to logo file
114#logo=/cgit/git-logo.png
115
116
117## Url loaded when clicking the logo
118#logo-link=http://www.kernel.org/pub/software/scm/git/docs/
119
120
121## Url loaded when clicking a submodule link
122#module-link=./?repo=%s&page=commit&id=%s
123
124
125## Shared prefix which, when combined with repo url, becomes the url used
126## to clone the repo
127#clone-prefix=
128
129
130## Number of chars shown of repo description (in repolist view)
131#max-repodesc-length=60
132
133
134## Number of chars shown of commit subject message (in log view)
135#max-message-length=60
136
137
138## Number of commits per page in log view
139#max-commit-count=50
140
141
142## Root of cached output
143#cache-root=/var/cache/cgit
144
145
146## Include another config-file
147#include=/var/cgit/repolist
148
149##
150## Time-To-Live settings: specifies how long (in minutes) different pages
151## should be cached (0 for instant expiration, -1 for immortal pages)
152##
153
154## ttl for root page
155#cache-root-ttl=5
156
157## ttl for repo summary page
158#cache-repo-ttl=5
159
160## ttl for other dynamic pages
161#cache-dynamic-ttl=5
162
163## ttl for static pages (addressed by SHA-1)
164#cache-static-ttl=-1
165
166
167
168## Example repository entry. Required values are repo.url and repo.path (each
169## repository section must start with repo.url).
170#repo.url=cgit
171#repo.name=cgit
172#repo.desc=the caching cgi for git
173#repo.path=/pub/git/cgit			## this is the path to $GIT_DIR
174#repo.owner=Lars Hjemli
175#repo.defbranch=master				## define a default branch
176#repo.snapshots=tar.bz2				## override a sitewide snapshot-setting
177#repo.enable-log-filecount=0			## override the default filecount setting
178#repo.enable-log-linecount=0			## override the default linecount setting
179#repo.module-link=/git/%s/commit/?id=%s		## override the standard module-link
180#repo.readme=info/web/readme			## specify a file to include on summary page
181#repo.clone-url=git://hjemli.net/pub/git/cgit
182
183## Additional repositories grouped under "mirrors"
184#repo.group=mirrors
185
186#repo.url=git
187#repo.path=/pub/git/git
188#repo.clone-url=git://hjemli.net/pub/git/git
189#
190#repo.url=linux
191#repo.path=/pub/git/linux
192
193## A group of private repositories (with a working directory)
194#repo.group=private
195
196#repo.url=larsh/cgit
197#repo.path=/home/larsh/src/cgit/.git
198
199#repo.url=larsh/git
200#repo.path=/home/larsh/src/git/.git