-rw-r--r-- | cgitrc.5.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 0412f64..dc63637 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -1,424 +1,444 @@ | |||
1 | CGITRC(5) | 1 | CGITRC(5) |
2 | ======== | 2 | ======== |
3 | 3 | ||
4 | 4 | ||
5 | NAME | 5 | NAME |
6 | ---- | 6 | ---- |
7 | cgitrc - runtime configuration for cgit | 7 | cgitrc - runtime configuration for cgit |
8 | 8 | ||
9 | 9 | ||
10 | SYNOPSIS | 10 | SYNOPSIS |
11 | -------- | 11 | -------- |
12 | Cgitrc contains all runtime settings for cgit, including the list of git | 12 | Cgitrc contains all runtime settings for cgit, including the list of git |
13 | repositories, formatted as a line-separated list of NAME=VALUE pairs. Blank | 13 | repositories, formatted as a line-separated list of NAME=VALUE pairs. Blank |
14 | lines, and lines starting with '#', are ignored. | 14 | lines, and lines starting with '#', are ignored. |
15 | 15 | ||
16 | 16 | ||
17 | GLOBAL SETTINGS | 17 | GLOBAL SETTINGS |
18 | --------------- | 18 | --------------- |
19 | agefile:: | 19 | agefile:: |
20 | Specifies a path, relative to each repository path, which can be used | 20 | Specifies a path, relative to each repository path, which can be used |
21 | to specify the date and time of the youngest commit in the repository. | 21 | to specify the date and time of the youngest commit in the repository. |
22 | The first line in the file is used as input to the "parse_date" | 22 | The first line in the file is used as input to the "parse_date" |
23 | function in libgit. Recommended timestamp-format is "yyyy-mm-dd | 23 | function in libgit. Recommended timestamp-format is "yyyy-mm-dd |
24 | hh:mm:ss". Default value: "info/web/last-modified". | 24 | hh:mm:ss". Default value: "info/web/last-modified". |
25 | 25 | ||
26 | cache-root:: | 26 | cache-root:: |
27 | Path used to store the cgit cache entries. Default value: | 27 | Path used to store the cgit cache entries. Default value: |
28 | "/var/cache/cgit". | 28 | "/var/cache/cgit". |
29 | 29 | ||
30 | cache-dynamic-ttl:: | 30 | cache-dynamic-ttl:: |
31 | Number which specifies the time-to-live, in minutes, for the cached | 31 | Number which specifies the time-to-live, in minutes, for the cached |
32 | version of repository pages accessed without a fixed SHA1. Default | 32 | version of repository pages accessed without a fixed SHA1. Default |
33 | value: "5". | 33 | value: "5". |
34 | 34 | ||
35 | cache-repo-ttl:: | 35 | cache-repo-ttl:: |
36 | Number which specifies the time-to-live, in minutes, for the cached | 36 | Number which specifies the time-to-live, in minutes, for the cached |
37 | version of the repository summary page. Default value: "5". | 37 | version of the repository summary page. Default value: "5". |
38 | 38 | ||
39 | cache-root-ttl:: | 39 | cache-root-ttl:: |
40 | Number which specifies the time-to-live, in minutes, for the cached | 40 | Number which specifies the time-to-live, in minutes, for the cached |
41 | version of the repository index page. Default value: "5". | 41 | version of the repository index page. Default value: "5". |
42 | 42 | ||
43 | cache-size:: | 43 | cache-size:: |
44 | The maximum number of entries in the cgit cache. Default value: "0" | 44 | The maximum number of entries in the cgit cache. Default value: "0" |
45 | (i.e. caching is disabled). | 45 | (i.e. caching is disabled). |
46 | 46 | ||
47 | cache-static-ttl:: | 47 | cache-static-ttl:: |
48 | Number which specifies the time-to-live, in minutes, for the cached | 48 | Number which specifies the time-to-live, in minutes, for the cached |
49 | version of repository pages accessed with a fixed SHA1. Default value: | 49 | version of repository pages accessed with a fixed SHA1. Default value: |
50 | "5". | 50 | "5". |
51 | 51 | ||
52 | clone-prefix:: | 52 | clone-prefix:: |
53 | Space-separated list of common prefixes which, when combined with a | 53 | Space-separated list of common prefixes which, when combined with a |
54 | repository url, generates valid clone urls for the repository. This | 54 | repository url, generates valid clone urls for the repository. This |
55 | setting is only used if `repo.clone-url` is unspecified. Default value: | 55 | setting is only used if `repo.clone-url` is unspecified. Default value: |
56 | none. | 56 | none. |
57 | 57 | ||
58 | commit-filter:: | ||
59 | Specifies a command which will be invoked to format commit messages. | ||
60 | The command will get the message on its STDIN, and the STDOUT from the | ||
61 | command will be included verbatim as the commit message, i.e. this can | ||
62 | be used to implement bugtracker integration. Default value: none. | ||
63 | |||
58 | css:: | 64 | css:: |
59 | Url which specifies the css document to include in all cgit pages. | 65 | Url which specifies the css document to include in all cgit pages. |
60 | Default value: "/cgit.css". | 66 | Default value: "/cgit.css". |
61 | 67 | ||
62 | embedded:: | 68 | embedded:: |
63 | Flag which, when set to "1", will make cgit generate a html fragment | 69 | Flag which, when set to "1", will make cgit generate a html fragment |
64 | suitable for embedding in other html pages. Default value: none. See | 70 | suitable for embedding in other html pages. Default value: none. See |
65 | also: "noheader". | 71 | also: "noheader". |
66 | 72 | ||
67 | enable-index-links:: | 73 | enable-index-links:: |
68 | Flag which, when set to "1", will make cgit generate extra links for | 74 | Flag which, when set to "1", will make cgit generate extra links for |
69 | each repo in the repository index (specifically, to the "summary", | 75 | each repo in the repository index (specifically, to the "summary", |
70 | "commit" and "tree" pages). Default value: "0". | 76 | "commit" and "tree" pages). Default value: "0". |
71 | 77 | ||
72 | enable-log-filecount:: | 78 | enable-log-filecount:: |
73 | Flag which, when set to "1", will make cgit print the number of | 79 | Flag which, when set to "1", will make cgit print the number of |
74 | modified files for each commit on the repository log page. Default | 80 | modified files for each commit on the repository log page. Default |
75 | value: "0". | 81 | value: "0". |
76 | 82 | ||
77 | enable-log-linecount:: | 83 | enable-log-linecount:: |
78 | Flag which, when set to "1", will make cgit print the number of added | 84 | Flag which, when set to "1", will make cgit print the number of added |
79 | and removed lines for each commit on the repository log page. Default | 85 | and removed lines for each commit on the repository log page. Default |
80 | value: "0". | 86 | value: "0". |
81 | 87 | ||
82 | favicon:: | 88 | favicon:: |
83 | Url used as link to a shortcut icon for cgit. If specified, it is | 89 | Url used as link to a shortcut icon for cgit. If specified, it is |
84 | suggested to use the value "/favicon.ico" since certain browsers will | 90 | suggested to use the value "/favicon.ico" since certain browsers will |
85 | ignore other values. Default value: none. | 91 | ignore other values. Default value: none. |
86 | 92 | ||
87 | footer:: | 93 | footer:: |
88 | The content of the file specified with this option will be included | 94 | The content of the file specified with this option will be included |
89 | verbatim at the bottom of all pages (i.e. it replaces the standard | 95 | verbatim at the bottom of all pages (i.e. it replaces the standard |
90 | "generated by..." message. Default value: none. | 96 | "generated by..." message. Default value: none. |
91 | 97 | ||
92 | head-include:: | 98 | head-include:: |
93 | The content of the file specified with this option will be included | 99 | The content of the file specified with this option will be included |
94 | verbatim in the html HEAD section on all pages. Default value: none. | 100 | verbatim in the html HEAD section on all pages. Default value: none. |
95 | 101 | ||
96 | header:: | 102 | header:: |
97 | The content of the file specified with this option will be included | 103 | The content of the file specified with this option will be included |
98 | verbatim at the top of all pages. Default value: none. | 104 | verbatim at the top of all pages. Default value: none. |
99 | 105 | ||
100 | include:: | 106 | include:: |
101 | Name of a configfile to include before the rest of the current config- | 107 | Name of a configfile to include before the rest of the current config- |
102 | file is parsed. Default value: none. | 108 | file is parsed. Default value: none. |
103 | 109 | ||
104 | index-header:: | 110 | index-header:: |
105 | The content of the file specified with this option will be included | 111 | The content of the file specified with this option will be included |
106 | verbatim above the repository index. This setting is deprecated, and | 112 | verbatim above the repository index. This setting is deprecated, and |
107 | will not be supported by cgit-1.0 (use root-readme instead). Default | 113 | will not be supported by cgit-1.0 (use root-readme instead). Default |
108 | value: none. | 114 | value: none. |
109 | 115 | ||
110 | index-info:: | 116 | index-info:: |
111 | The content of the file specified with this option will be included | 117 | The content of the file specified with this option will be included |
112 | verbatim below the heading on the repository index page. This setting | 118 | verbatim below the heading on the repository index page. This setting |
113 | is deprecated, and will not be supported by cgit-1.0 (use root-desc | 119 | is deprecated, and will not be supported by cgit-1.0 (use root-desc |
114 | instead). Default value: none. | 120 | instead). Default value: none. |
115 | 121 | ||
116 | local-time:: | 122 | local-time:: |
117 | Flag which, if set to "1", makes cgit print commit and tag times in the | 123 | Flag which, if set to "1", makes cgit print commit and tag times in the |
118 | servers timezone. Default value: "0". | 124 | servers timezone. Default value: "0". |
119 | 125 | ||
120 | logo:: | 126 | logo:: |
121 | Url which specifies the source of an image which will be used as a logo | 127 | Url which specifies the source of an image which will be used as a logo |
122 | on all cgit pages. | 128 | on all cgit pages. |
123 | 129 | ||
124 | logo-link:: | 130 | logo-link:: |
125 | Url loaded when clicking on the cgit logo image. If unspecified the | 131 | Url loaded when clicking on the cgit logo image. If unspecified the |
126 | calculated url of the repository index page will be used. Default | 132 | calculated url of the repository index page will be used. Default |
127 | value: none. | 133 | value: none. |
128 | 134 | ||
129 | max-commit-count:: | 135 | max-commit-count:: |
130 | Specifies the number of entries to list per page in "log" view. Default | 136 | Specifies the number of entries to list per page in "log" view. Default |
131 | value: "50". | 137 | value: "50". |
132 | 138 | ||
133 | max-message-length:: | 139 | max-message-length:: |
134 | Specifies the maximum number of commit message characters to display in | 140 | Specifies the maximum number of commit message characters to display in |
135 | "log" view. Default value: "80". | 141 | "log" view. Default value: "80". |
136 | 142 | ||
137 | max-repo-count:: | 143 | max-repo-count:: |
138 | Specifies the number of entries to list per page on therepository | 144 | Specifies the number of entries to list per page on therepository |
139 | index page. Default value: "50". | 145 | index page. Default value: "50". |
140 | 146 | ||
141 | max-repodesc-length:: | 147 | max-repodesc-length:: |
142 | Specifies the maximum number of repo description characters to display | 148 | Specifies the maximum number of repo description characters to display |
143 | on the repository index page. Default value: "80". | 149 | on the repository index page. Default value: "80". |
144 | 150 | ||
145 | max-stats:: | 151 | max-stats:: |
146 | Set the default maximum statistics period. Valid values are "week", | 152 | Set the default maximum statistics period. Valid values are "week", |
147 | "month", "quarter" and "year". If unspecified, statistics are | 153 | "month", "quarter" and "year". If unspecified, statistics are |
148 | disabled. Default value: none. See also: "repo.max-stats". | 154 | disabled. Default value: none. See also: "repo.max-stats". |
149 | 155 | ||
150 | mimetype.<ext>:: | 156 | mimetype.<ext>:: |
151 | Set the mimetype for the specified filename extension. This is used | 157 | Set the mimetype for the specified filename extension. This is used |
152 | by the `plain` command when returning blob content. | 158 | by the `plain` command when returning blob content. |
153 | 159 | ||
154 | module-link:: | 160 | module-link:: |
155 | Text which will be used as the formatstring for a hyperlink when a | 161 | Text which will be used as the formatstring for a hyperlink when a |
156 | submodule is printed in a directory listing. The arguments for the | 162 | submodule is printed in a directory listing. The arguments for the |
157 | formatstring are the path and SHA1 of the submodule commit. Default | 163 | formatstring are the path and SHA1 of the submodule commit. Default |
158 | value: "./?repo=%s&page=commit&id=%s" | 164 | value: "./?repo=%s&page=commit&id=%s" |
159 | 165 | ||
160 | nocache:: | 166 | nocache:: |
161 | If set to the value "1" caching will be disabled. This settings is | 167 | If set to the value "1" caching will be disabled. This settings is |
162 | deprecated, and will not be honored starting with cgit-1.0. Default | 168 | deprecated, and will not be honored starting with cgit-1.0. Default |
163 | value: "0". | 169 | value: "0". |
164 | 170 | ||
165 | noplainemail:: | 171 | noplainemail:: |
166 | If set to "1" showing full author email adresses will be disabled. | 172 | If set to "1" showing full author email adresses will be disabled. |
167 | Default value: "0". | 173 | Default value: "0". |
168 | 174 | ||
169 | noheader:: | 175 | noheader:: |
170 | Flag which, when set to "1", will make cgit omit the standard header | 176 | Flag which, when set to "1", will make cgit omit the standard header |
171 | on all pages. Default value: none. See also: "embedded". | 177 | on all pages. Default value: none. See also: "embedded". |
172 | 178 | ||
173 | renamelimit:: | 179 | renamelimit:: |
174 | Maximum number of files to consider when detecting renames. The value | 180 | Maximum number of files to consider when detecting renames. The value |
175 | "-1" uses the compiletime value in git (for further info, look at | 181 | "-1" uses the compiletime value in git (for further info, look at |
176 | `man git-diff`). Default value: "-1". | 182 | `man git-diff`). Default value: "-1". |
177 | 183 | ||
178 | repo.group:: | 184 | repo.group:: |
179 | A value for the current repository group, which all repositories | 185 | A value for the current repository group, which all repositories |
180 | specified after this setting will inherit. Default value: none. | 186 | specified after this setting will inherit. Default value: none. |
181 | 187 | ||
182 | robots:: | 188 | robots:: |
183 | Text used as content for the "robots" meta-tag. Default value: | 189 | Text used as content for the "robots" meta-tag. Default value: |
184 | "index, nofollow". | 190 | "index, nofollow". |
185 | 191 | ||
186 | root-desc:: | 192 | root-desc:: |
187 | Text printed below the heading on the repository index page. Default | 193 | Text printed below the heading on the repository index page. Default |
188 | value: "a fast webinterface for the git dscm". | 194 | value: "a fast webinterface for the git dscm". |
189 | 195 | ||
190 | root-readme:: | 196 | root-readme:: |
191 | The content of the file specified with this option will be included | 197 | The content of the file specified with this option will be included |
192 | verbatim below the "about" link on the repository index page. Default | 198 | verbatim below the "about" link on the repository index page. Default |
193 | value: none. | 199 | value: none. |
194 | 200 | ||
195 | root-title:: | 201 | root-title:: |
196 | Text printed as heading on the repository index page. Default value: | 202 | Text printed as heading on the repository index page. Default value: |
197 | "Git Repository Browser". | 203 | "Git Repository Browser". |
198 | 204 | ||
199 | snapshots:: | 205 | snapshots:: |
200 | Text which specifies the default (and allowed) set of snapshot formats | 206 | Text which specifies the default (and allowed) set of snapshot formats |
201 | supported by cgit. The value is a space-separated list of zero or more | 207 | supported by cgit. The value is a space-separated list of zero or more |
202 | of the following values: | 208 | of the following values: |
203 | "tar" uncompressed tar-file | 209 | "tar" uncompressed tar-file |
204 | "tar.gz"gzip-compressed tar-file | 210 | "tar.gz"gzip-compressed tar-file |
205 | "tar.bz2"bzip-compressed tar-file | 211 | "tar.bz2"bzip-compressed tar-file |
206 | "zip" zip-file | 212 | "zip" zip-file |
207 | Default value: none. | 213 | Default value: none. |
208 | 214 | ||
215 | source-filter:: | ||
216 | Specifies a command which will be invoked to format plaintext blobs | ||
217 | in the tree view. The command will get the blob content on its STDIN | ||
218 | and the name of the blob as its only command line argument. The STDOUT | ||
219 | from the command will be included verbatim as the blob contents, i.e. | ||
220 | this can be used to implement e.g. syntax highlighting. Default value: | ||
221 | none. | ||
222 | |||
209 | summary-branches:: | 223 | summary-branches:: |
210 | Specifies the number of branches to display in the repository "summary" | 224 | Specifies the number of branches to display in the repository "summary" |
211 | view. Default value: "10". | 225 | view. Default value: "10". |
212 | 226 | ||
213 | summary-log:: | 227 | summary-log:: |
214 | Specifies the number of log entries to display in the repository | 228 | Specifies the number of log entries to display in the repository |
215 | "summary" view. Default value: "10". | 229 | "summary" view. Default value: "10". |
216 | 230 | ||
217 | summary-tags:: | 231 | summary-tags:: |
218 | Specifies the number of tags to display in the repository "summary" | 232 | Specifies the number of tags to display in the repository "summary" |
219 | view. Default value: "10". | 233 | view. Default value: "10". |
220 | 234 | ||
221 | virtual-root:: | 235 | virtual-root:: |
222 | Url which, if specified, will be used as root for all cgit links. It | 236 | Url which, if specified, will be used as root for all cgit links. It |
223 | will also cause cgit to generate 'virtual urls', i.e. urls like | 237 | will also cause cgit to generate 'virtual urls', i.e. urls like |
224 | '/cgit/tree/README' as opposed to '?r=cgit&p=tree&path=README'. Default | 238 | '/cgit/tree/README' as opposed to '?r=cgit&p=tree&path=README'. Default |
225 | value: none. | 239 | value: none. |
226 | NOTE: cgit has recently learned how to use PATH_INFO to achieve the | 240 | NOTE: cgit has recently learned how to use PATH_INFO to achieve the |
227 | same kind of virtual urls, so this option will probably be deprecated. | 241 | same kind of virtual urls, so this option will probably be deprecated. |
228 | 242 | ||
229 | REPOSITORY SETTINGS | 243 | REPOSITORY SETTINGS |
230 | ------------------- | 244 | ------------------- |
231 | repo.clone-url:: | 245 | repo.clone-url:: |
232 | A list of space-separated urls which can be used to clone this repo. | 246 | A list of space-separated urls which can be used to clone this repo. |
233 | Default value: none. | 247 | Default value: none. |
234 | 248 | ||
249 | repo.commit-filter:: | ||
250 | Override the default commit-filter. Default value: <commit-filter>. | ||
251 | |||
235 | repo.defbranch:: | 252 | repo.defbranch:: |
236 | The name of the default branch for this repository. If no such branch | 253 | The name of the default branch for this repository. If no such branch |
237 | exists in the repository, the first branch name (when sorted) is used | 254 | exists in the repository, the first branch name (when sorted) is used |
238 | as default instead. Default value: "master". | 255 | as default instead. Default value: "master". |
239 | 256 | ||
240 | repo.desc:: | 257 | repo.desc:: |
241 | The value to show as repository description. Default value: none. | 258 | The value to show as repository description. Default value: none. |
242 | 259 | ||
243 | repo.enable-log-filecount:: | 260 | repo.enable-log-filecount:: |
244 | A flag which can be used to disable the global setting | 261 | A flag which can be used to disable the global setting |
245 | `enable-log-filecount'. Default value: none. | 262 | `enable-log-filecount'. Default value: none. |
246 | 263 | ||
247 | repo.enable-log-linecount:: | 264 | repo.enable-log-linecount:: |
248 | A flag which can be used to disable the global setting | 265 | A flag which can be used to disable the global setting |
249 | `enable-log-linecount'. Default value: none. | 266 | `enable-log-linecount'. Default value: none. |
250 | 267 | ||
251 | repo.max-stats:: | 268 | repo.max-stats:: |
252 | Override the default maximum statistics period. Valid values are equal | 269 | Override the default maximum statistics period. Valid values are equal |
253 | to the values specified for the global "max-stats" setting. Default | 270 | to the values specified for the global "max-stats" setting. Default |
254 | value: none. | 271 | value: none. |
255 | 272 | ||
256 | repo.name:: | 273 | repo.name:: |
257 | The value to show as repository name. Default value: <repo.url>. | 274 | The value to show as repository name. Default value: <repo.url>. |
258 | 275 | ||
259 | repo.owner:: | 276 | repo.owner:: |
260 | A value used to identify the owner of the repository. Default value: | 277 | A value used to identify the owner of the repository. Default value: |
261 | none. | 278 | none. |
262 | 279 | ||
263 | repo.path:: | 280 | repo.path:: |
264 | An absolute path to the repository directory. For non-bare repositories | 281 | An absolute path to the repository directory. For non-bare repositories |
265 | this is the .git-directory. Default value: none. | 282 | this is the .git-directory. Default value: none. |
266 | 283 | ||
267 | repo.readme:: | 284 | repo.readme:: |
268 | A path (relative to <repo.path>) which specifies a file to include | 285 | A path (relative to <repo.path>) which specifies a file to include |
269 | verbatim as the "About" page for this repo. Default value: none. | 286 | verbatim as the "About" page for this repo. Default value: none. |
270 | 287 | ||
271 | repo.snapshots:: | 288 | repo.snapshots:: |
272 | A mask of allowed snapshot-formats for this repo, restricted by the | 289 | A mask of allowed snapshot-formats for this repo, restricted by the |
273 | "snapshots" global setting. Default value: <snapshots>. | 290 | "snapshots" global setting. Default value: <snapshots>. |
274 | 291 | ||
292 | repo.source-filter:: | ||
293 | Override the default source-filter. Default value: <source-filter>. | ||
294 | |||
275 | repo.url:: | 295 | repo.url:: |
276 | The relative url used to access the repository. This must be the first | 296 | The relative url used to access the repository. This must be the first |
277 | setting specified for each repo. Default value: none. | 297 | setting specified for each repo. Default value: none. |
278 | 298 | ||
279 | 299 | ||
280 | EXAMPLE CGITRC FILE | 300 | EXAMPLE CGITRC FILE |
281 | ------------------- | 301 | ------------------- |
282 | 302 | ||
283 | .... | 303 | .... |
284 | # Enable caching of up to 1000 output entriess | 304 | # Enable caching of up to 1000 output entriess |
285 | cache-size=1000 | 305 | cache-size=1000 |
286 | 306 | ||
287 | 307 | ||
288 | # Specify some default clone prefixes | 308 | # Specify some default clone prefixes |
289 | clone-prefix=git://foobar.com ssh://foobar.com/pub/git http://foobar.com/git | 309 | clone-prefix=git://foobar.com ssh://foobar.com/pub/git http://foobar.com/git |
290 | 310 | ||
291 | # Specify the css url | 311 | # Specify the css url |
292 | css=/css/cgit.css | 312 | css=/css/cgit.css |
293 | 313 | ||
294 | 314 | ||
295 | # Show extra links for each repository on the index page | 315 | # Show extra links for each repository on the index page |
296 | enable-index-links=1 | 316 | enable-index-links=1 |
297 | 317 | ||
298 | 318 | ||
299 | # Show number of affected files per commit on the log pages | 319 | # Show number of affected files per commit on the log pages |
300 | enable-log-filecount=1 | 320 | enable-log-filecount=1 |
301 | 321 | ||
302 | 322 | ||
303 | # Show number of added/removed lines per commit on the log pages | 323 | # Show number of added/removed lines per commit on the log pages |
304 | enable-log-linecount=1 | 324 | enable-log-linecount=1 |
305 | 325 | ||
306 | 326 | ||
307 | # Add a cgit favicon | 327 | # Add a cgit favicon |
308 | favicon=/favicon.ico | 328 | favicon=/favicon.ico |
309 | 329 | ||
310 | 330 | ||
311 | # Use a custom logo | 331 | # Use a custom logo |
312 | logo=/img/mylogo.png | 332 | logo=/img/mylogo.png |
313 | 333 | ||
314 | 334 | ||
315 | # Enable statistics per week, month and quarter | 335 | # Enable statistics per week, month and quarter |
316 | max-stats=quarter | 336 | max-stats=quarter |
317 | 337 | ||
318 | 338 | ||
319 | # Set the title and heading of the repository index page | 339 | # Set the title and heading of the repository index page |
320 | root-title=foobar.com git repositories | 340 | root-title=foobar.com git repositories |
321 | 341 | ||
322 | 342 | ||
323 | # Set a subheading for the repository index page | 343 | # Set a subheading for the repository index page |
324 | root-desc=tracking the foobar development | 344 | root-desc=tracking the foobar development |
325 | 345 | ||
326 | 346 | ||
327 | # Include some more info about foobar.com on the index page | 347 | # Include some more info about foobar.com on the index page |
328 | root-readme=/var/www/htdocs/about.html | 348 | root-readme=/var/www/htdocs/about.html |
329 | 349 | ||
330 | 350 | ||
331 | # Allow download of tar.gz, tar.bz2 and zip-files | 351 | # Allow download of tar.gz, tar.bz2 and zip-files |
332 | snapshots=tar.gz tar.bz2 zip | 352 | snapshots=tar.gz tar.bz2 zip |
333 | 353 | ||
334 | 354 | ||
335 | ## | 355 | ## |
336 | ## List of common mimetypes | 356 | ## List of common mimetypes |
337 | ## | 357 | ## |
338 | 358 | ||
339 | mimetype.git=image/git | 359 | mimetype.git=image/git |
340 | mimetype.html=text/html | 360 | mimetype.html=text/html |
341 | mimetype.jpg=image/jpeg | 361 | mimetype.jpg=image/jpeg |
342 | mimetype.jpeg=image/jpeg | 362 | mimetype.jpeg=image/jpeg |
343 | mimetype.pdf=application/pdf | 363 | mimetype.pdf=application/pdf |
344 | mimetype.png=image/png | 364 | mimetype.png=image/png |
345 | mimetype.svg=image/svg+xml | 365 | mimetype.svg=image/svg+xml |
346 | 366 | ||
347 | 367 | ||
348 | ## | 368 | ## |
349 | ## List of repositories. | 369 | ## List of repositories. |
350 | ## PS: Any repositories listed when repo.group is unset will not be | 370 | ## PS: Any repositories listed when repo.group is unset will not be |
351 | ## displayed under a group heading | 371 | ## displayed under a group heading |
352 | ## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos') | 372 | ## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos') |
353 | ## and included like this: | 373 | ## and included like this: |
354 | ## include=/etc/cgitrepos | 374 | ## include=/etc/cgitrepos |
355 | ## | 375 | ## |
356 | 376 | ||
357 | 377 | ||
358 | repo.url=foo | 378 | repo.url=foo |
359 | repo.path=/pub/git/foo.git | 379 | repo.path=/pub/git/foo.git |
360 | repo.desc=the master foo repository | 380 | repo.desc=the master foo repository |
361 | repo.owner=fooman@foobar.com | 381 | repo.owner=fooman@foobar.com |
362 | repo.readme=info/web/about.html | 382 | repo.readme=info/web/about.html |
363 | 383 | ||
364 | 384 | ||
365 | repo.url=bar | 385 | repo.url=bar |
366 | repo.path=/pub/git/bar.git | 386 | repo.path=/pub/git/bar.git |
367 | repo.desc=the bars for your foo | 387 | repo.desc=the bars for your foo |
368 | repo.owner=barman@foobar.com | 388 | repo.owner=barman@foobar.com |
369 | repo.readme=info/web/about.html | 389 | repo.readme=info/web/about.html |
370 | 390 | ||
371 | 391 | ||
372 | # The next repositories will be displayed under the 'extras' heading | 392 | # The next repositories will be displayed under the 'extras' heading |
373 | repo.group=extras | 393 | repo.group=extras |
374 | 394 | ||
375 | 395 | ||
376 | repo.url=baz | 396 | repo.url=baz |
377 | repo.path=/pub/git/baz.git | 397 | repo.path=/pub/git/baz.git |
378 | repo.desc=a set of extensions for bar users | 398 | repo.desc=a set of extensions for bar users |
379 | 399 | ||
380 | repo.url=wiz | 400 | repo.url=wiz |
381 | repo.path=/pub/git/wiz.git | 401 | repo.path=/pub/git/wiz.git |
382 | repo.desc=the wizard of foo | 402 | repo.desc=the wizard of foo |
383 | 403 | ||
384 | 404 | ||
385 | # Add some mirrored repositories | 405 | # Add some mirrored repositories |
386 | repo.group=mirrors | 406 | repo.group=mirrors |
387 | 407 | ||
388 | 408 | ||
389 | repo.url=git | 409 | repo.url=git |
390 | repo.path=/pub/git/git.git | 410 | repo.path=/pub/git/git.git |
391 | repo.desc=the dscm | 411 | repo.desc=the dscm |
392 | 412 | ||
393 | 413 | ||
394 | repo.url=linux | 414 | repo.url=linux |
395 | repo.path=/pub/git/linux.git | 415 | repo.path=/pub/git/linux.git |
396 | repo.desc=the kernel | 416 | repo.desc=the kernel |
397 | 417 | ||
398 | # Disable adhoc downloads of this repo | 418 | # Disable adhoc downloads of this repo |
399 | repo.snapshots=0 | 419 | repo.snapshots=0 |
400 | 420 | ||
401 | # Disable line-counts for this repo | 421 | # Disable line-counts for this repo |
402 | repo.enable-log-linecount=0 | 422 | repo.enable-log-linecount=0 |
403 | 423 | ||
404 | # Restrict the max statistics period for this repo | 424 | # Restrict the max statistics period for this repo |
405 | repo.max-stats=month | 425 | repo.max-stats=month |
406 | .... | 426 | .... |
407 | 427 | ||
408 | 428 | ||
409 | BUGS | 429 | BUGS |
410 | ---- | 430 | ---- |
411 | Comments currently cannot appear on the same line as a setting; the comment | 431 | Comments currently cannot appear on the same line as a setting; the comment |
412 | will be included as part of the value. E.g. this line: | 432 | will be included as part of the value. E.g. this line: |
413 | 433 | ||
414 | robots=index # allow indexing | 434 | robots=index # allow indexing |
415 | 435 | ||
416 | will generate the following html element: | 436 | will generate the following html element: |
417 | 437 | ||
418 | <meta name='robots' content='index # allow indexing'/> | 438 | <meta name='robots' content='index # allow indexing'/> |
419 | 439 | ||
420 | 440 | ||
421 | 441 | ||
422 | AUTHOR | 442 | AUTHOR |
423 | ------ | 443 | ------ |
424 | Lars Hjemli <hjemli@gmail.com> | 444 | Lars Hjemli <hjemli@gmail.com> |