Loui Chang | 676d17b | 2009-09-14 01:21:10 -0400 | [diff] [blame] | 1 | :man source: cgit |
| 2 | :man manual: cgit |
| 3 | |
Matt McCormick (thewtex) | 9f9ede3 | 2009-02-11 23:06:05 -0600 | [diff] [blame] | 4 | CGITRC(5) |
| 5 | ======== |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 6 | |
| 7 | |
| 8 | NAME |
| 9 | ---- |
Lars Hjemli | c54f8a5 | 2009-02-12 10:12:05 +0100 | [diff] [blame] | 10 | cgitrc - runtime configuration for cgit |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 11 | |
| 12 | |
Matt McCormick (thewtex) | 9f9ede3 | 2009-02-11 23:06:05 -0600 | [diff] [blame] | 13 | SYNOPSIS |
| 14 | -------- |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 15 | Cgitrc contains all runtime settings for cgit, including the list of git |
| 16 | repositories, formatted as a line-separated list of NAME=VALUE pairs. Blank |
| 17 | lines, and lines starting with '#', are ignored. |
| 18 | |
| 19 | |
Lars Hjemli | fcc6056 | 2009-08-10 18:58:29 +0200 | [diff] [blame] | 20 | LOCATION |
| 21 | -------- |
| 22 | The default location of cgitrc, defined at compile time, is /etc/cgitrc. At |
| 23 | runtime, cgit will consult the environment variable CGIT_CONFIG and, if |
| 24 | defined, use its value instead. |
| 25 | |
| 26 | |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 27 | GLOBAL SETTINGS |
| 28 | --------------- |
Lars Hjemli | 537c05f | 2009-08-09 13:27:21 +0200 | [diff] [blame] | 29 | about-filter:: |
| 30 | Specifies a command which will be invoked to format the content of |
| 31 | about pages (both top-level and for each repository). The command will |
Jason A. Donenfeld | 2a1ead3 | 2013-05-25 20:30:57 +0200 | [diff] [blame] | 32 | get the content of the about-file on its STDIN, the name of the file |
| 33 | as the first argument, and the STDOUT from the command will be |
| 34 | included verbatim on the about page. Default value: none. See |
| 35 | also: "FILTER API". |
Lars Hjemli | 537c05f | 2009-08-09 13:27:21 +0200 | [diff] [blame] | 36 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 37 | agefile:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 38 | Specifies a path, relative to each repository path, which can be used |
| 39 | to specify the date and time of the youngest commit in the repository. |
| 40 | The first line in the file is used as input to the "parse_date" |
| 41 | function in libgit. Recommended timestamp-format is "yyyy-mm-dd |
Christian Hesse | 820df9c | 2013-07-22 09:13:39 +0200 | [diff] [blame] | 42 | hh:mm:ss". You may want to generate this file from a post-receive |
| 43 | hook. Default value: "info/web/last-modified". |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 44 | |
Jason A. Donenfeld | d6e9200 | 2014-01-14 21:49:31 +0100 | [diff] [blame] | 45 | auth-filter:: |
| 46 | Specifies a command that will be invoked for authenticating repository |
| 47 | access. Receives quite a few arguments, and data on both stdin and |
| 48 | stdout for authentication processing. Details follow later in this |
| 49 | document. If no auth-filter is specified, no authentication is |
| 50 | performed. Default value: none. See also: "FILTER API". |
| 51 | |
Jason A. Donenfeld | 389cc17 | 2013-04-08 16:57:12 +0200 | [diff] [blame] | 52 | branch-sort:: |
| 53 | Flag which, when set to "age", enables date ordering in the branch ref |
| 54 | list, and when set to "name" enables ordering by branch name. Default |
| 55 | value: "name". |
| 56 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 57 | cache-root:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 58 | Path used to store the cgit cache entries. Default value: |
Lars Hjemli | ef13e5e | 2011-06-13 21:58:39 +0000 | [diff] [blame] | 59 | "/var/cache/cgit". See also: "MACRO EXPANSION". |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 60 | |
Jason A. Donenfeld | 61ff100 | 2013-05-28 16:33:30 +0200 | [diff] [blame] | 61 | cache-static-ttl:: |
| 62 | Number which specifies the time-to-live, in minutes, for the cached |
Jason A. Donenfeld | 2e8e9af | 2014-02-21 01:36:20 +0100 | [diff] [blame] | 63 | version of repository pages accessed with a fixed SHA1. See also: |
| 64 | "CACHE". Default value: -1". |
Jason A. Donenfeld | 61ff100 | 2013-05-28 16:33:30 +0200 | [diff] [blame] | 65 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 66 | cache-dynamic-ttl:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 67 | Number which specifies the time-to-live, in minutes, for the cached |
Jason A. Donenfeld | 2e8e9af | 2014-02-21 01:36:20 +0100 | [diff] [blame] | 68 | version of repository pages accessed without a fixed SHA1. See also: |
| 69 | "CACHE". Default value: "5". |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 70 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 71 | cache-repo-ttl:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 72 | Number which specifies the time-to-live, in minutes, for the cached |
Jason A. Donenfeld | 2e8e9af | 2014-02-21 01:36:20 +0100 | [diff] [blame] | 73 | version of the repository summary page. See also: "CACHE". Default |
| 74 | value: "5". |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 75 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 76 | cache-root-ttl:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 77 | Number which specifies the time-to-live, in minutes, for the cached |
Jason A. Donenfeld | 2e8e9af | 2014-02-21 01:36:20 +0100 | [diff] [blame] | 78 | version of the repository index page. See also: "CACHE". Default |
| 79 | value: "5". |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 80 | |
Lars Hjemli | b4dc93d | 2009-08-20 17:42:14 +0200 | [diff] [blame] | 81 | cache-scanrc-ttl:: |
| 82 | Number which specifies the time-to-live, in minutes, for the result |
Jason A. Donenfeld | 2e8e9af | 2014-02-21 01:36:20 +0100 | [diff] [blame] | 83 | of scanning a path for git repositories. See also: "CACHE". Default |
| 84 | value: "15". |
Jason A. Donenfeld | 61ff100 | 2013-05-28 16:33:30 +0200 | [diff] [blame] | 85 | |
| 86 | cache-about-ttl:: |
| 87 | Number which specifies the time-to-live, in minutes, for the cached |
Jason A. Donenfeld | 2e8e9af | 2014-02-21 01:36:20 +0100 | [diff] [blame] | 88 | version of the repository about page. See also: "CACHE". Default |
| 89 | value: "15". |
Lars Hjemli | b4dc93d | 2009-08-20 17:42:14 +0200 | [diff] [blame] | 90 | |
Lukas Fleischer | a3722ec | 2014-02-05 10:23:58 +0100 | [diff] [blame] | 91 | cache-snapshot-ttl:: |
| 92 | Number which specifies the time-to-live, in minutes, for the cached |
Jason A. Donenfeld | 2e8e9af | 2014-02-21 01:36:20 +0100 | [diff] [blame] | 93 | version of snapshots. See also: "CACHE". Default value: "5". |
Lukas Fleischer | a3722ec | 2014-02-05 10:23:58 +0100 | [diff] [blame] | 94 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 95 | cache-size:: |
Jason A. Donenfeld | 2e8e9af | 2014-02-21 01:36:20 +0100 | [diff] [blame] | 96 | The maximum number of entries in the cgit cache. When set to "0", |
| 97 | caching is disabled. See also: "CACHE". Default value: "0" |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 98 | |
Jason A. Donenfeld | 184c565 | 2012-07-12 19:13:39 +0200 | [diff] [blame] | 99 | case-sensitive-sort:: |
| 100 | Sort items in the repo list case sensitively. Default value: "1". |
Tobias Bieniek | 7a4e7c8 | 2012-10-09 20:53:29 +0200 | [diff] [blame] | 101 | See also: repository-sort, section-sort. |
Jason A. Donenfeld | 184c565 | 2012-07-12 19:13:39 +0200 | [diff] [blame] | 102 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 103 | clone-prefix:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 104 | Space-separated list of common prefixes which, when combined with a |
| 105 | repository url, generates valid clone urls for the repository. This |
| 106 | setting is only used if `repo.clone-url` is unspecified. Default value: |
| 107 | none. |
| 108 | |
Lars Hjemli | a1429db | 2011-06-06 20:49:13 +0000 | [diff] [blame] | 109 | clone-url:: |
| 110 | Space-separated list of clone-url templates. This setting is only |
| 111 | used if `repo.clone-url` is unspecified. Default value: none. See |
| 112 | also: "MACRO EXPANSION", "FILTER API". |
| 113 | |
Lars Hjemli | f35db1c | 2009-07-31 17:42:57 +0200 | [diff] [blame] | 114 | commit-filter:: |
| 115 | Specifies a command which will be invoked to format commit messages. |
| 116 | The command will get the message on its STDIN, and the STDOUT from the |
| 117 | command will be included verbatim as the commit message, i.e. this can |
| 118 | be used to implement bugtracker integration. Default value: none. |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 119 | See also: "FILTER API". |
Lars Hjemli | f35db1c | 2009-07-31 17:42:57 +0200 | [diff] [blame] | 120 | |
Jason A. Donenfeld | 389cc17 | 2013-04-08 16:57:12 +0200 | [diff] [blame] | 121 | commit-sort:: |
| 122 | Flag which, when set to "date", enables strict date ordering in the |
| 123 | commit log, and when set to "topo" enables strict topological |
| 124 | ordering. If unset, the default ordering of "git log" is used. Default |
| 125 | value: unset. |
| 126 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 127 | css:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 128 | Url which specifies the css document to include in all cgit pages. |
| 129 | Default value: "/cgit.css". |
| 130 | |
Jason A. Donenfeld | a5e1553 | 2014-01-13 04:04:52 +0100 | [diff] [blame] | 131 | email-filter:: |
| 132 | Specifies a command which will be invoked to format names and email |
| 133 | address of committers, authors, and taggers, as represented in various |
| 134 | places throughout the cgit interface. This command will receive an |
Jason A. Donenfeld | 786609b | 2014-01-13 16:24:40 +0100 | [diff] [blame] | 135 | email address and an origin page string as its command line arguments, |
| 136 | and the text to format on STDIN. It is to write the formatted text back |
| 137 | out onto STDOUT. Default value: none. See also: "FILTER API". |
Jason A. Donenfeld | a5e1553 | 2014-01-13 04:04:52 +0100 | [diff] [blame] | 138 | |
Lars Hjemli | 286a905 | 2009-07-25 12:29:22 +0200 | [diff] [blame] | 139 | embedded:: |
Lars Hjemli | 86b753c | 2009-07-25 12:23:30 +0200 | [diff] [blame] | 140 | Flag which, when set to "1", will make cgit generate a html fragment |
| 141 | suitable for embedding in other html pages. Default value: none. See |
| 142 | also: "noheader". |
Johan Herland | 9a8d39c | 2010-11-15 18:39:50 +0100 | [diff] [blame] | 143 | |
| 144 | enable-commit-graph:: |
| 145 | Flag which, when set to "1", will make cgit print an ASCII-art commit |
| 146 | history graph to the left of the commit messages in the repository |
| 147 | log page. Default value: "0". |
| 148 | |
Lars Hjemli | 2273c2c | 2009-08-24 08:53:21 +0200 | [diff] [blame] | 149 | enable-filter-overrides:: |
| 150 | Flag which, when set to "1", allows all filter settings to be |
| 151 | overridden in repository-specific cgitrc files. Default value: none. |
| 152 | |
John Keeping | 30304d8 | 2015-08-12 15:55:28 +0100 | [diff] [blame^] | 153 | enable-follow-links:: |
| 154 | Flag which, when set to "1", allows users to follow a file in the log |
| 155 | view. Default value: "0". |
| 156 | |
Dan McGee | 4223132 | 2011-01-12 12:06:07 -0600 | [diff] [blame] | 157 | enable-http-clone:: |
| 158 | If set to "1", cgit will act as an dumb HTTP endpoint for git clones. |
Přemysl Janouch | 4f6fb32 | 2013-09-11 20:10:14 +0200 | [diff] [blame] | 159 | You can add "http://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL" to clone-url |
| 160 | to expose this feature. If you use an alternate way of serving git |
| 161 | repositories, you may wish to disable this. Default value: "1". |
Dan McGee | 4223132 | 2011-01-12 12:06:07 -0600 | [diff] [blame] | 162 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 163 | enable-index-links:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 164 | Flag which, when set to "1", will make cgit generate extra links for |
| 165 | each repo in the repository index (specifically, to the "summary", |
| 166 | "commit" and "tree" pages). Default value: "0". |
| 167 | |
Florian Pritz | b1e172a | 2013-02-01 10:59:13 +0100 | [diff] [blame] | 168 | enable-index-owner:: |
| 169 | Flag which, when set to "1", will make cgit display the owner of |
| 170 | each repo in the repository index. Default value: "1". |
| 171 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 172 | enable-log-filecount:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 173 | Flag which, when set to "1", will make cgit print the number of |
| 174 | modified files for each commit on the repository log page. Default |
| 175 | value: "0". |
| 176 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 177 | enable-log-linecount:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 178 | Flag which, when set to "1", will make cgit print the number of added |
| 179 | and removed lines for each commit on the repository log page. Default |
| 180 | value: "0". |
| 181 | |
Lars Hjemli | 41934a3 | 2009-11-07 19:10:58 +0100 | [diff] [blame] | 182 | enable-remote-branches:: |
| 183 | Flag which, when set to "1", will make cgit display remote branches |
| 184 | in the summary and refs views. Default value: "0". See also: |
| 185 | "repo.enable-remote-branches". |
| 186 | |
Lars Hjemli | 581a0c2 | 2010-02-27 13:12:55 +0100 | [diff] [blame] | 187 | enable-subject-links:: |
| 188 | Flag which, when set to "1", will make cgit use the subject of the |
| 189 | parent commit as link text when generating links to parent commits |
| 190 | in commit view. Default value: "0". See also: |
| 191 | "repo.enable-subject-links". |
| 192 | |
Lars Hjemli | b0f946b | 2009-08-21 14:26:52 +0200 | [diff] [blame] | 193 | enable-tree-linenumbers:: |
| 194 | Flag which, when set to "1", will make cgit generate linenumber links |
| 195 | for plaintext blobs printed in the tree view. Default value: "1". |
| 196 | |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 197 | enable-git-config:: |
| 198 | Flag which, when set to "1", will allow cgit to use git config to set |
| 199 | any repo specific settings. This option is used in conjunction with |
Jason A. Donenfeld | a8d613e | 2013-04-10 14:42:49 +0200 | [diff] [blame] | 200 | "scan-path", and must be defined prior, to augment repo-specific |
| 201 | settings. The keys gitweb.owner, gitweb.category, and gitweb.description |
| 202 | will map to the cgit keys repo.owner, repo.section, and repo.desc, |
Přemysl Janouch | 88028ad | 2013-09-11 20:10:10 +0200 | [diff] [blame] | 203 | respectively. All git config keys that begin with "cgit." will be mapped |
Jason A. Donenfeld | a8d613e | 2013-04-10 14:42:49 +0200 | [diff] [blame] | 204 | to the corresponding "repo." key in cgit. Default value: "0". See also: |
| 205 | scan-path, section-from-path. |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 206 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 207 | favicon:: |
Christian Hesse | 830eb6f | 2013-07-22 08:56:50 +0200 | [diff] [blame] | 208 | Url used as link to a shortcut icon for cgit. It is suggested to use |
| 209 | the value "/favicon.ico" since certain browsers will ignore other |
| 210 | values. Default value: "/favicon.ico". |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 211 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 212 | footer:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 213 | The content of the file specified with this option will be included |
| 214 | verbatim at the bottom of all pages (i.e. it replaces the standard |
| 215 | "generated by..." message. Default value: none. |
| 216 | |
Lars Hjemli | f618e8f | 2009-07-25 12:03:54 +0200 | [diff] [blame] | 217 | head-include:: |
| 218 | The content of the file specified with this option will be included |
| 219 | verbatim in the html HEAD section on all pages. Default value: none. |
| 220 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 221 | header:: |
Lars Hjemli | b115955 | 2009-01-29 21:27:39 +0100 | [diff] [blame] | 222 | The content of the file specified with this option will be included |
| 223 | verbatim at the top of all pages. Default value: none. |
| 224 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 225 | include:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 226 | Name of a configfile to include before the rest of the current config- |
Lars Hjemli | ef13e5e | 2011-06-13 21:58:39 +0000 | [diff] [blame] | 227 | file is parsed. Default value: none. See also: "MACRO EXPANSION". |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 228 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 229 | index-header:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 230 | The content of the file specified with this option will be included |
| 231 | verbatim above the repository index. This setting is deprecated, and |
| 232 | will not be supported by cgit-1.0 (use root-readme instead). Default |
| 233 | value: none. |
| 234 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 235 | index-info:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 236 | The content of the file specified with this option will be included |
| 237 | verbatim below the heading on the repository index page. This setting |
| 238 | is deprecated, and will not be supported by cgit-1.0 (use root-desc |
| 239 | instead). Default value: none. |
| 240 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 241 | local-time:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 242 | Flag which, if set to "1", makes cgit print commit and tag times in the |
| 243 | servers timezone. Default value: "0". |
| 244 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 245 | logo:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 246 | Url which specifies the source of an image which will be used as a logo |
Lars Hjemli | 92f9b53 | 2009-08-10 18:14:12 +0200 | [diff] [blame] | 247 | on all cgit pages. Default value: "/cgit.png". |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 248 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 249 | logo-link:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 250 | Url loaded when clicking on the cgit logo image. If unspecified the |
| 251 | calculated url of the repository index page will be used. Default |
| 252 | value: none. |
| 253 | |
Chris Burroughs | 96ceb9a | 2014-08-04 09:23:08 -0400 | [diff] [blame] | 254 | owner-filter:: |
| 255 | Specifies a command which will be invoked to format the Owner |
| 256 | column of the main page. The command will get the owner on STDIN, |
| 257 | and the STDOUT from the command will be included verbatim in the |
| 258 | table. This can be used to link to additional context such as an |
| 259 | owners home page. When active this filter is used instead of the |
| 260 | default owner query url. Default value: none. |
| 261 | See also: "FILTER API". |
| 262 | |
Aaron Griffin | 80476b0 | 2010-02-04 18:08:16 -0600 | [diff] [blame] | 263 | max-atom-items:: |
| 264 | Specifies the number of items to display in atom feeds view. Default |
| 265 | value: "10". |
| 266 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 267 | max-commit-count:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 268 | Specifies the number of entries to list per page in "log" view. Default |
| 269 | value: "50". |
| 270 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 271 | max-message-length:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 272 | Specifies the maximum number of commit message characters to display in |
| 273 | "log" view. Default value: "80". |
| 274 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 275 | max-repo-count:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 276 | Specifies the number of entries to list per page on the repository |
| 277 | index page. Default value: "50". |
| 278 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 279 | max-repodesc-length:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 280 | Specifies the maximum number of repo description characters to display |
| 281 | on the repository index page. Default value: "80". |
| 282 | |
Georg Lukas | ef07ccc | 2009-11-28 03:44:33 +0100 | [diff] [blame] | 283 | max-blob-size:: |
| 284 | Specifies the maximum size of a blob to display HTML for in KBytes. |
| 285 | Default value: "0" (limit disabled). |
| 286 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 287 | max-stats:: |
Lars Hjemli | fb2f3f6 | 2008-12-07 13:17:21 +0100 | [diff] [blame] | 288 | Set the default maximum statistics period. Valid values are "week", |
| 289 | "month", "quarter" and "year". If unspecified, statistics are |
| 290 | disabled. Default value: none. See also: "repo.max-stats". |
| 291 | |
Lars Hjemli | c4d46c7 | 2009-02-13 20:43:30 +0100 | [diff] [blame] | 292 | mimetype.<ext>:: |
| 293 | Set the mimetype for the specified filename extension. This is used |
| 294 | by the `plain` command when returning blob content. |
| 295 | |
Ferry Huberts | d01c600 | 2011-07-19 10:51:58 +0200 | [diff] [blame] | 296 | mimetype-file:: |
| 297 | Specifies the file to use for automatic mimetype lookup. If specified |
| 298 | then this field is used as a fallback when no "mimetype.<ext>" match is |
| 299 | found. If unspecified then no such lookup is performed. The typical file |
Jason A. Donenfeld | c6f5bc7 | 2012-11-15 17:21:47 +0100 | [diff] [blame] | 300 | to use on a Linux system is /etc/mime.types. The format of the file must |
| 301 | comply to: |
Ferry Huberts | d01c600 | 2011-07-19 10:51:58 +0200 | [diff] [blame] | 302 | - a comment line is an empty line or a line starting with a hash (#), |
| 303 | optionally preceded by whitespace |
| 304 | - a non-comment line starts with the mimetype (like image/png), followed |
| 305 | by one or more file extensions (like jpg), all separated by whitespace |
Jason A. Donenfeld | ab9805a | 2012-11-15 01:26:06 +0100 | [diff] [blame] | 306 | Default value: none. See also: "mimetype.<ext>". |
Ferry Huberts | d01c600 | 2011-07-19 10:51:58 +0200 | [diff] [blame] | 307 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 308 | module-link:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 309 | Text which will be used as the formatstring for a hyperlink when a |
| 310 | submodule is printed in a directory listing. The arguments for the |
| 311 | formatstring are the path and SHA1 of the submodule commit. Default |
Lars Hjemli | 3fbaf09 | 2011-06-15 10:13:15 +0200 | [diff] [blame] | 312 | value: none. |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 313 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 314 | nocache:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 315 | If set to the value "1" caching will be disabled. This settings is |
| 316 | deprecated, and will not be honored starting with cgit-1.0. Default |
| 317 | value: "0". |
| 318 | |
Martin Szulecki | 2f56e39 | 2009-08-07 14:05:17 +0200 | [diff] [blame] | 319 | noplainemail:: |
Jason A. Donenfeld | cf15260 | 2013-08-16 13:15:17 -0600 | [diff] [blame] | 320 | If set to "1" showing full author email addresses will be disabled. |
Martin Szulecki | 2f56e39 | 2009-08-07 14:05:17 +0200 | [diff] [blame] | 321 | Default value: "0". |
| 322 | |
Lars Hjemli | 286a905 | 2009-07-25 12:29:22 +0200 | [diff] [blame] | 323 | noheader:: |
Lars Hjemli | 86b753c | 2009-07-25 12:23:30 +0200 | [diff] [blame] | 324 | Flag which, when set to "1", will make cgit omit the standard header |
| 325 | on all pages. Default value: none. See also: "embedded". |
| 326 | |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 327 | project-list:: |
| 328 | A list of subdirectories inside of scan-path, relative to it, that |
| 329 | should loaded as git repositories. This must be defined prior to |
Lars Hjemli | ef13e5e | 2011-06-13 21:58:39 +0000 | [diff] [blame] | 330 | scan-path. Default value: none. See also: scan-path, "MACRO |
| 331 | EXPANSION". |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 332 | |
Lars Hjemli | 515edb0 | 2010-08-21 15:08:01 +0200 | [diff] [blame] | 333 | readme:: |
Jason A. Donenfeld | 2a1ead3 | 2013-05-25 20:30:57 +0200 | [diff] [blame] | 334 | Text which will be used as default value for "repo.readme". Multiple |
Jason A. Donenfeld | dcbc043 | 2013-05-26 15:20:02 +0200 | [diff] [blame] | 335 | config keys may be specified, and cgit will use the first found file |
| 336 | in this list. This is useful in conjunction with scan-path. Default |
| 337 | value: none. See also: scan-path, repo.readme. |
Lars Hjemli | 515edb0 | 2010-08-21 15:08:01 +0200 | [diff] [blame] | 338 | |
Jason A. Donenfeld | 2e4a941 | 2010-07-29 19:47:50 +0200 | [diff] [blame] | 339 | remove-suffix:: |
| 340 | If set to "1" and scan-path is enabled, if any repositories are found |
| 341 | with a suffix of ".git", this suffix will be removed for the url and |
Jason A. Donenfeld | a8d613e | 2013-04-10 14:42:49 +0200 | [diff] [blame] | 342 | name. This must be defined prior to scan-path. Default value: "0". |
| 343 | See also: scan-path. |
Jason A. Donenfeld | 2e4a941 | 2010-07-29 19:47:50 +0200 | [diff] [blame] | 344 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 345 | renamelimit:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 346 | Maximum number of files to consider when detecting renames. The value |
| 347 | "-1" uses the compiletime value in git (for further info, look at |
| 348 | `man git-diff`). Default value: "-1". |
| 349 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 350 | repo.group:: |
Lars Hjemli | 007df98 | 2009-08-24 07:51:48 +0200 | [diff] [blame] | 351 | Legacy alias for "section". This option is deprecated and will not be |
| 352 | supported in cgit-1.0. |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 353 | |
Jason A. Donenfeld | 389cc17 | 2013-04-08 16:57:12 +0200 | [diff] [blame] | 354 | repository-sort:: |
| 355 | The way in which repositories in each section are sorted. Valid values |
| 356 | are "name" for sorting by the repo name or "age" for sorting by the |
| 357 | most recently updated repository. Default value: "name". See also: |
| 358 | section, case-sensitive-sort, section-sort. |
| 359 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 360 | robots:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 361 | Text used as content for the "robots" meta-tag. Default value: |
| 362 | "index, nofollow". |
| 363 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 364 | root-desc:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 365 | Text printed below the heading on the repository index page. Default |
| 366 | value: "a fast webinterface for the git dscm". |
| 367 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 368 | root-readme:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 369 | The content of the file specified with this option will be included |
| 370 | verbatim below the "about" link on the repository index page. Default |
| 371 | value: none. |
| 372 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 373 | root-title:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 374 | Text printed as heading on the repository index page. Default value: |
| 375 | "Git Repository Browser". |
| 376 | |
Johan Herland | df52279 | 2010-11-15 20:41:00 +0100 | [diff] [blame] | 377 | scan-hidden-path:: |
| 378 | If set to "1" and scan-path is enabled, scan-path will recurse into |
| 379 | directories whose name starts with a period ('.'). Otherwise, |
| 380 | scan-path will stay away from such directories (considered as |
| 381 | "hidden"). Note that this does not apply to the ".git" directory in |
| 382 | non-bare repos. This must be defined prior to scan-path. |
| 383 | Default value: 0. See also: scan-path. |
| 384 | |
Lars Hjemli | 0046637 | 2009-08-23 19:35:56 +0200 | [diff] [blame] | 385 | scan-path:: |
| 386 | A path which will be scanned for repositories. If caching is enabled, |
| 387 | the result will be cached as a cgitrc include-file in the cache |
Jason A. Donenfeld | 3516502 | 2010-07-29 17:52:29 +0200 | [diff] [blame] | 388 | directory. If project-list has been defined prior to scan-path, |
| 389 | scan-path loads only the directories listed in the file pointed to by |
Julius Plenz | facca56 | 2011-03-10 17:03:24 +0100 | [diff] [blame] | 390 | project-list. Be advised that only the global settings taken |
| 391 | before the scan-path directive will be applied to each repository. |
Lars Hjemli | ef13e5e | 2011-06-13 21:58:39 +0000 | [diff] [blame] | 392 | Default value: none. See also: cache-scanrc-ttl, project-list, |
| 393 | "MACRO EXPANSION". |
Lars Hjemli | 0046637 | 2009-08-23 19:35:56 +0200 | [diff] [blame] | 394 | |
Lars Hjemli | 007df98 | 2009-08-24 07:51:48 +0200 | [diff] [blame] | 395 | section:: |
Lars Hjemli | e7af002 | 2009-08-23 22:58:39 +0200 | [diff] [blame] | 396 | The name of the current repository section - all repositories defined |
| 397 | after this option will inherit the current section name. Default value: |
| 398 | none. |
| 399 | |
Tobias Bieniek | 7a4e7c8 | 2012-10-09 20:53:29 +0200 | [diff] [blame] | 400 | section-sort:: |
| 401 | Flag which, when set to "1", will sort the sections on the repository |
| 402 | listing by name. Set this flag to "0" if the order in the cgitrc file should |
| 403 | be preserved. Default value: "1". See also: section, |
| 404 | case-sensitive-sort, repository-sort. |
Jason A. Donenfeld | 184c565 | 2012-07-12 19:13:39 +0200 | [diff] [blame] | 405 | |
Lars Hjemli | 797110e | 2010-08-21 15:44:09 +0200 | [diff] [blame] | 406 | section-from-path:: |
Jason A. Donenfeld | a8d613e | 2013-04-10 14:42:49 +0200 | [diff] [blame] | 407 | A number which, if defined prior to scan-path, specifies how many |
Lars Hjemli | 797110e | 2010-08-21 15:44:09 +0200 | [diff] [blame] | 408 | path elements from each repo path to use as a default section name. |
| 409 | If negative, cgit will discard the specified number of path elements |
Jason A. Donenfeld | 184c565 | 2012-07-12 19:13:39 +0200 | [diff] [blame] | 410 | above the repo directory. Default value: "0". |
Lars Hjemli | 797110e | 2010-08-21 15:44:09 +0200 | [diff] [blame] | 411 | |
Ragnar Ouchterlony | c358aa3 | 2009-09-14 20:19:02 +0200 | [diff] [blame] | 412 | side-by-side-diffs:: |
| 413 | If set to "1" shows side-by-side diffs instead of unidiffs per |
| 414 | default. Default value: "0". |
| 415 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 416 | snapshots:: |
Lukas Fleischer | 70546a3 | 2014-01-14 00:49:48 +0100 | [diff] [blame] | 417 | Text which specifies the default set of snapshot formats that cgit |
| 418 | generates links for. The value is a space-separated list of zero or |
| 419 | more of the values "tar", "tar.gz", "tar.bz2", "tar.xz" and "zip". |
| 420 | Default value: none. |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 421 | |
Lars Hjemli | 46b7abe | 2009-07-31 16:55:27 +0200 | [diff] [blame] | 422 | source-filter:: |
| 423 | Specifies a command which will be invoked to format plaintext blobs |
| 424 | in the tree view. The command will get the blob content on its STDIN |
| 425 | and the name of the blob as its only command line argument. The STDOUT |
| 426 | from the command will be included verbatim as the blob contents, i.e. |
| 427 | this can be used to implement e.g. syntax highlighting. Default value: |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 428 | none. See also: "FILTER API". |
Lars Hjemli | 46b7abe | 2009-07-31 16:55:27 +0200 | [diff] [blame] | 429 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 430 | summary-branches:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 431 | Specifies the number of branches to display in the repository "summary" |
| 432 | view. Default value: "10". |
| 433 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 434 | summary-log:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 435 | Specifies the number of log entries to display in the repository |
| 436 | "summary" view. Default value: "10". |
| 437 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 438 | summary-tags:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 439 | Specifies the number of tags to display in the repository "summary" |
| 440 | view. Default value: "10". |
| 441 | |
Felix Hanley | e0c6f23 | 2010-11-08 19:41:13 +0100 | [diff] [blame] | 442 | strict-export:: |
| 443 | Filename which, if specified, needs to be present within the repository |
| 444 | for cgit to allow access to that repository. This can be used to emulate |
| 445 | gitweb's EXPORT_OK and STRICT_EXPORT functionality and limit cgit's |
Jason A. Donenfeld | a8d613e | 2013-04-10 14:42:49 +0200 | [diff] [blame] | 446 | repositories to match those exported by git-daemon. This option must |
| 447 | be defined prior to scan-path. |
Felix Hanley | e0c6f23 | 2010-11-08 19:41:13 +0100 | [diff] [blame] | 448 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 449 | virtual-root:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 450 | Url which, if specified, will be used as root for all cgit links. It |
| 451 | will also cause cgit to generate 'virtual urls', i.e. urls like |
| 452 | '/cgit/tree/README' as opposed to '?r=cgit&p=tree&path=README'. Default |
| 453 | value: none. |
| 454 | NOTE: cgit has recently learned how to use PATH_INFO to achieve the |
| 455 | same kind of virtual urls, so this option will probably be deprecated. |
| 456 | |
Jason A. Donenfeld | 521e10c | 2012-10-09 06:56:14 -0400 | [diff] [blame] | 457 | |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 458 | REPOSITORY SETTINGS |
| 459 | ------------------- |
Lars Hjemli | 537c05f | 2009-08-09 13:27:21 +0200 | [diff] [blame] | 460 | repo.about-filter:: |
Lars Hjemli | 2273c2c | 2009-08-24 08:53:21 +0200 | [diff] [blame] | 461 | Override the default about-filter. Default value: none. See also: |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 462 | "enable-filter-overrides". See also: "FILTER API". |
Lars Hjemli | 537c05f | 2009-08-09 13:27:21 +0200 | [diff] [blame] | 463 | |
Jason A. Donenfeld | 389cc17 | 2013-04-08 16:57:12 +0200 | [diff] [blame] | 464 | repo.branch-sort:: |
| 465 | Flag which, when set to "age", enables date ordering in the branch ref |
| 466 | list, and when set to "name" enables ordering by branch name. Default |
| 467 | value: "name". |
| 468 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 469 | repo.clone-url:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 470 | A list of space-separated urls which can be used to clone this repo. |
Lars Hjemli | a1429db | 2011-06-06 20:49:13 +0000 | [diff] [blame] | 471 | Default value: none. See also: "MACRO EXPANSION". |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 472 | |
Lars Hjemli | e976df2 | 2009-08-09 13:22:00 +0200 | [diff] [blame] | 473 | repo.commit-filter:: |
Lars Hjemli | 2273c2c | 2009-08-24 08:53:21 +0200 | [diff] [blame] | 474 | Override the default commit-filter. Default value: none. See also: |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 475 | "enable-filter-overrides". See also: "FILTER API". |
Lars Hjemli | e976df2 | 2009-08-09 13:22:00 +0200 | [diff] [blame] | 476 | |
Jason A. Donenfeld | 389cc17 | 2013-04-08 16:57:12 +0200 | [diff] [blame] | 477 | repo.commit-sort:: |
| 478 | Flag which, when set to "date", enables strict date ordering in the |
| 479 | commit log, and when set to "topo" enables strict topological |
| 480 | ordering. If unset, the default ordering of "git log" is used. Default |
| 481 | value: unset. |
| 482 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 483 | repo.defbranch:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 484 | The name of the default branch for this repository. If no such branch |
| 485 | exists in the repository, the first branch name (when sorted) is used |
Julius Plenz | d711de5 | 2011-04-07 12:59:24 +0200 | [diff] [blame] | 486 | as default instead. Default value: branch pointed to by HEAD, or |
| 487 | "master" if there is no suitable HEAD. |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 488 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 489 | repo.desc:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 490 | The value to show as repository description. Default value: none. |
| 491 | |
Jason A. Donenfeld | a5e1553 | 2014-01-13 04:04:52 +0100 | [diff] [blame] | 492 | repo.email-filter:: |
| 493 | Override the default email-filter. Default value: none. See also: |
| 494 | "enable-filter-overrides". See also: "FILTER API". |
| 495 | |
Johan Herland | 9a8d39c | 2010-11-15 18:39:50 +0100 | [diff] [blame] | 496 | repo.enable-commit-graph:: |
| 497 | A flag which can be used to disable the global setting |
| 498 | `enable-commit-graph'. Default value: none. |
| 499 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 500 | repo.enable-log-filecount:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 501 | A flag which can be used to disable the global setting |
| 502 | `enable-log-filecount'. Default value: none. |
| 503 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 504 | repo.enable-log-linecount:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 505 | A flag which can be used to disable the global setting |
| 506 | `enable-log-linecount'. Default value: none. |
| 507 | |
Lars Hjemli | 41934a3 | 2009-11-07 19:10:58 +0100 | [diff] [blame] | 508 | repo.enable-remote-branches:: |
| 509 | Flag which, when set to "1", will make cgit display remote branches |
| 510 | in the summary and refs views. Default value: <enable-remote-branches>. |
| 511 | |
Lars Hjemli | 581a0c2 | 2010-02-27 13:12:55 +0100 | [diff] [blame] | 512 | repo.enable-subject-links:: |
| 513 | A flag which can be used to override the global setting |
| 514 | `enable-subject-links'. Default value: none. |
| 515 | |
Lukas Fleischer | c58cec9 | 2015-01-29 12:52:49 +0100 | [diff] [blame] | 516 | repo.hide:: |
| 517 | Flag which, when set to "1", hides the repository from the repository |
| 518 | index. The repository can still be accessed by providing a direct path. |
| 519 | Default value: "0". See also: "repo.ignore". |
| 520 | |
| 521 | repo.ignore:: |
| 522 | Flag which, when set to "1", ignores the repository. The repository |
| 523 | is not shown in the index and cannot be accessed by providing a direct |
| 524 | path. Default value: "0". See also: "repo.hide". |
| 525 | |
Bernhard Reutner-Fischer | 808c685 | 2010-12-23 12:47:54 +0100 | [diff] [blame] | 526 | repo.logo:: |
| 527 | Url which specifies the source of an image which will be used as a logo |
| 528 | on this repo's pages. Default value: global logo. |
| 529 | |
| 530 | repo.logo-link:: |
| 531 | Url loaded when clicking on the cgit logo image. If unspecified the |
| 532 | calculated url of the repository index page will be used. Default |
| 533 | value: global logo-link. |
| 534 | |
Chris Burroughs | 96ceb9a | 2014-08-04 09:23:08 -0400 | [diff] [blame] | 535 | repo.owner-filter:: |
| 536 | Override the default owner-filter. Default value: none. See also: |
| 537 | "enable-filter-overrides". See also: "FILTER API". |
| 538 | |
Lars Hjemli | 46ca32e | 2011-06-15 09:58:42 +0200 | [diff] [blame] | 539 | repo.module-link:: |
| 540 | Text which will be used as the formatstring for a hyperlink when a |
| 541 | submodule is printed in a directory listing. The arguments for the |
| 542 | formatstring are the path and SHA1 of the submodule commit. Default |
| 543 | value: <module-link> |
| 544 | |
Lars Hjemli | 6857bec | 2011-06-15 10:04:13 +0200 | [diff] [blame] | 545 | repo.module-link.<path>:: |
| 546 | Text which will be used as the formatstring for a hyperlink when a |
| 547 | submodule with the specified subdirectory path is printed in a |
| 548 | directory listing. The only argument for the formatstring is the SHA1 |
| 549 | of the submodule commit. Default value: none. |
| 550 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 551 | repo.max-stats:: |
Lars Hjemli | fb2f3f6 | 2008-12-07 13:17:21 +0100 | [diff] [blame] | 552 | Override the default maximum statistics period. Valid values are equal |
| 553 | to the values specified for the global "max-stats" setting. Default |
| 554 | value: none. |
Lars Hjemli | f86a23f | 2008-12-06 17:38:19 +0100 | [diff] [blame] | 555 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 556 | repo.name:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 557 | The value to show as repository name. Default value: <repo.url>. |
| 558 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 559 | repo.owner:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 560 | A value used to identify the owner of the repository. Default value: |
| 561 | none. |
| 562 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 563 | repo.path:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 564 | An absolute path to the repository directory. For non-bare repositories |
| 565 | this is the .git-directory. Default value: none. |
| 566 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 567 | repo.readme:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 568 | A path (relative to <repo.path>) which specifies a file to include |
Jason A. Donenfeld | 379e80e | 2010-08-04 00:45:42 +0200 | [diff] [blame] | 569 | verbatim as the "About" page for this repo. You may also specify a |
| 570 | git refspec by head or by hash by prepending the refspec followed by |
Jason A. Donenfeld | 3cb5d86 | 2013-05-25 14:19:10 +0200 | [diff] [blame] | 571 | a colon. For example, "master:docs/readme.mkd". If the value begins |
| 572 | with a colon, i.e. ":docs/readme.rst", the default branch of the |
Jason A. Donenfeld | 2a1ead3 | 2013-05-25 20:30:57 +0200 | [diff] [blame] | 573 | repository will be used. Sharing any file will expose that entire |
| 574 | directory tree to the "/about/PATH" endpoints, so be sure that there |
| 575 | are no non-public files located in the same directory as the readme |
| 576 | file. Default value: <readme>. |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 577 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 578 | repo.snapshots:: |
Lukas Fleischer | 70546a3 | 2014-01-14 00:49:48 +0100 | [diff] [blame] | 579 | A mask of snapshot formats for this repo that cgit generates links for, |
| 580 | restricted by the global "snapshots" setting. Default value: |
| 581 | <snapshots>. |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 582 | |
Lars Hjemli | 3939854 | 2009-08-23 23:00:28 +0200 | [diff] [blame] | 583 | repo.section:: |
Lars Hjemli | 007df98 | 2009-08-24 07:51:48 +0200 | [diff] [blame] | 584 | Override the current section name for this repository. Default value: |
| 585 | none. |
Lars Hjemli | 3939854 | 2009-08-23 23:00:28 +0200 | [diff] [blame] | 586 | |
Lars Hjemli | e976df2 | 2009-08-09 13:22:00 +0200 | [diff] [blame] | 587 | repo.source-filter:: |
Lars Hjemli | 2273c2c | 2009-08-24 08:53:21 +0200 | [diff] [blame] | 588 | Override the default source-filter. Default value: none. See also: |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 589 | "enable-filter-overrides". See also: "FILTER API". |
Lars Hjemli | e976df2 | 2009-08-09 13:22:00 +0200 | [diff] [blame] | 590 | |
Lars Hjemli | d3b2933 | 2009-02-12 09:58:28 +0100 | [diff] [blame] | 591 | repo.url:: |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 592 | The relative url used to access the repository. This must be the first |
| 593 | setting specified for each repo. Default value: none. |
| 594 | |
| 595 | |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 596 | REPOSITORY-SPECIFIC CGITRC FILE |
| 597 | ------------------------------- |
Lars Hjemli | 007df98 | 2009-08-24 07:51:48 +0200 | [diff] [blame] | 598 | When the option "scan-path" is used to auto-discover git repositories, cgit |
| 599 | will try to parse the file "cgitrc" within any found repository. Such a |
| 600 | repo-specific config file may contain any of the repo-specific options |
Lars Hjemli | 2273c2c | 2009-08-24 08:53:21 +0200 | [diff] [blame] | 601 | described above, except "repo.url" and "repo.path". Additionally, the "filter" |
| 602 | options are only acknowledged in repo-specific config files when |
| 603 | "enable-filter-overrides" is set to "1". |
| 604 | |
| 605 | Note: the "repo." prefix is dropped from the option names in repo-specific |
| 606 | config files, e.g. "repo.desc" becomes "desc". |
Lars Hjemli | 74061ed | 2009-08-24 00:04:58 +0200 | [diff] [blame] | 607 | |
| 608 | |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 609 | FILTER API |
| 610 | ---------- |
John Keeping | 4bb87cb | 2014-01-12 17:13:53 +0000 | [diff] [blame] | 611 | By default, filters are separate processes that are executed each time they |
| 612 | are needed. Alternative technologies may be used by prefixing the filter |
| 613 | specification with the relevant string; available values are: |
| 614 | |
| 615 | 'exec:':: |
| 616 | The default "one process per filter" mode. |
| 617 | |
Jason A. Donenfeld | f43b228 | 2014-01-13 14:18:51 +0100 | [diff] [blame] | 618 | 'lua:':: |
| 619 | Executes the script using a built-in Lua interpreter. The script is |
| 620 | loaded once per execution of cgit, and may be called multiple times |
| 621 | during cgit's lifetime, making it a good choice for repeated filters |
| 622 | such as the 'email filter'. It responds to three functions: |
| 623 | |
| 624 | 'filter_open(argument1, argument2, argument3, ...)':: |
| 625 | This is called upon activation of the filter for a particular |
| 626 | set of data. |
| 627 | 'filter_write(buffer)':: |
| 628 | This is called whenever cgit writes data to the webpage. |
| 629 | 'filter_close()':: |
| 630 | This is called when the current filtering operation is |
Jason A. Donenfeld | 6ca734d | 2014-01-14 18:07:23 +0100 | [diff] [blame] | 631 | completed. It must return an integer value. Usually 0 |
| 632 | indicates success. |
Christian Hesse | b431282 | 2014-04-17 11:55:46 +0200 | [diff] [blame] | 633 | |
Jason A. Donenfeld | f43b228 | 2014-01-13 14:18:51 +0100 | [diff] [blame] | 634 | Additionally, cgit exposes to the Lua the following built-in functions: |
| 635 | |
| 636 | 'html(str)':: |
| 637 | Writes 'str' to the webpage. |
| 638 | 'html_txt(str)':: |
| 639 | HTML escapes and writes 'str' to the webpage. |
| 640 | 'html_attr(str)':: |
| 641 | HTML escapes for an attribute and writes "str' to the webpage. |
| 642 | 'html_url_path(str)':: |
| 643 | URL escapes for a path and writes 'str' to the webpage. |
| 644 | 'html_url_arg(str)':: |
| 645 | URL escapes for an argument and writes 'str' to the webpage. |
Jason A. Donenfeld | d6e9200 | 2014-01-14 21:49:31 +0100 | [diff] [blame] | 646 | 'html_include(file)':: |
| 647 | Includes 'file' in webpage. |
Jason A. Donenfeld | f43b228 | 2014-01-13 14:18:51 +0100 | [diff] [blame] | 648 | |
| 649 | |
John Keeping | 4bb87cb | 2014-01-12 17:13:53 +0000 | [diff] [blame] | 650 | Parameters are provided to filters as follows. |
| 651 | |
Lars Hjemli | b88cda6 | 2011-06-13 22:34:13 +0000 | [diff] [blame] | 652 | about filter:: |
Jason A. Donenfeld | c0dfaf1 | 2013-05-25 14:50:19 +0200 | [diff] [blame] | 653 | This filter is given a single parameter: the filename of the source |
| 654 | file to filter. The filter can use the filename to determine (for |
| 655 | example) the type of syntax to follow when formatting the readme file. |
| 656 | The about text that is to be filtered is available on standard input |
| 657 | and the filtered text is expected on standard output. |
Lars Hjemli | b88cda6 | 2011-06-13 22:34:13 +0000 | [diff] [blame] | 658 | |
| 659 | commit filter:: |
| 660 | This filter is given no arguments. The commit message text that is to |
| 661 | be filtered is available on standard input and the filtered text is |
| 662 | expected on standard output. |
| 663 | |
Jason A. Donenfeld | a5e1553 | 2014-01-13 04:04:52 +0100 | [diff] [blame] | 664 | email filter:: |
Jason A. Donenfeld | 786609b | 2014-01-13 16:24:40 +0100 | [diff] [blame] | 665 | This filter is given two parameters: the email address of the relevent |
| 666 | author and a string indicating the originating page. The filter will |
| 667 | then receive the text string to format on standard input and is |
| 668 | expected to write to standard output the formatted text to be included |
| 669 | in the page. |
Jason A. Donenfeld | a5e1553 | 2014-01-13 04:04:52 +0100 | [diff] [blame] | 670 | |
Chris Burroughs | 96ceb9a | 2014-08-04 09:23:08 -0400 | [diff] [blame] | 671 | owner filter:: |
| 672 | This filter is given no arguments. The owner text is avilable on |
| 673 | standard input and the filter is expected to write to standard |
| 674 | output. The output is included in the Owner column. |
| 675 | |
Lars Hjemli | b88cda6 | 2011-06-13 22:34:13 +0000 | [diff] [blame] | 676 | source filter:: |
| 677 | This filter is given a single parameter: the filename of the source |
| 678 | file to filter. The filter can use the filename to determine (for |
| 679 | example) the syntax highlighting mode. The contents of the source |
| 680 | file that is to be filtered is available on standard input and the |
| 681 | filtered contents is expected on standard output. |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 682 | |
Jason A. Donenfeld | d6e9200 | 2014-01-14 21:49:31 +0100 | [diff] [blame] | 683 | auth filter:: |
Jason A. Donenfeld | a431326 | 2014-01-16 23:21:54 +0100 | [diff] [blame] | 684 | The authentication filter receives 12 parameters: |
Jason A. Donenfeld | d6e9200 | 2014-01-14 21:49:31 +0100 | [diff] [blame] | 685 | - filter action, explained below, which specifies which action the |
| 686 | filter is called for |
| 687 | - http cookie |
| 688 | - http method |
| 689 | - http referer |
| 690 | - http path |
| 691 | - http https flag |
| 692 | - cgit repo |
| 693 | - cgit page |
| 694 | - cgit url |
Jason A. Donenfeld | a431326 | 2014-01-16 23:21:54 +0100 | [diff] [blame] | 695 | - cgit login url |
Jason A. Donenfeld | d6e9200 | 2014-01-14 21:49:31 +0100 | [diff] [blame] | 696 | When the filter action is "body", this filter must write to output the |
Jason A. Donenfeld | a431326 | 2014-01-16 23:21:54 +0100 | [diff] [blame] | 697 | HTML for displaying the login form, which POSTs to the login url. When |
Jason A. Donenfeld | d6e9200 | 2014-01-14 21:49:31 +0100 | [diff] [blame] | 698 | the filter action is "authenticate-cookie", this filter must validate |
| 699 | the http cookie and return a 0 if it is invalid or 1 if it is invalid, |
| 700 | in the exit code / close function. If the filter action is |
| 701 | "authenticate-post", this filter receives POST'd parameters on |
Jason A. Donenfeld | efa2879 | 2014-08-01 17:37:27 +0200 | [diff] [blame] | 702 | standard input, and should write a complete CGI response, preferably |
Jason A. Donenfeld | b826537 | 2014-01-16 11:39:17 +0100 | [diff] [blame] | 703 | with a 302 redirect, and write to output one or more "Set-Cookie" |
Jason A. Donenfeld | d6e9200 | 2014-01-14 21:49:31 +0100 | [diff] [blame] | 704 | HTTP headers, each followed by a newline. |
| 705 | |
| 706 | Please see `filters/simple-authentication.lua` for a clear example |
| 707 | script that may be modified. |
| 708 | |
| 709 | |
| 710 | All filters are handed the following environment variables: |
Lars Hjemli | b88cda6 | 2011-06-13 22:34:13 +0000 | [diff] [blame] | 711 | |
| 712 | - CGIT_REPO_URL (from repo.url) |
| 713 | - CGIT_REPO_NAME (from repo.name) |
| 714 | - CGIT_REPO_PATH (from repo.path) |
| 715 | - CGIT_REPO_OWNER (from repo.owner) |
| 716 | - CGIT_REPO_DEFBRANCH (from repo.defbranch) |
| 717 | - CGIT_REPO_SECTION (from repo.section) |
| 718 | - CGIT_REPO_CLONE_URL (from repo.clone-url) |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 719 | |
| 720 | If a setting is not defined for a repository and the corresponding global |
| 721 | setting is also not defined (if applicable), then the corresponding |
Lukas Fleischer | d96d2c9 | 2011-09-14 11:52:43 +0200 | [diff] [blame] | 722 | environment variable will be unset. |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 723 | |
Ferry Huberts | b2cf630 | 2011-03-23 11:57:44 +0100 | [diff] [blame] | 724 | |
Lars Hjemli | ef13e5e | 2011-06-13 21:58:39 +0000 | [diff] [blame] | 725 | MACRO EXPANSION |
| 726 | --------------- |
Přemysl Janouch | 88028ad | 2013-09-11 20:10:10 +0200 | [diff] [blame] | 727 | The following cgitrc options support a simple macro expansion feature, |
| 728 | where tokens prefixed with "$" are replaced with the value of a similarly |
Lars Hjemli | ef13e5e | 2011-06-13 21:58:39 +0000 | [diff] [blame] | 729 | named environment variable: |
| 730 | |
| 731 | - cache-root |
| 732 | - include |
| 733 | - project-list |
| 734 | - scan-path |
| 735 | |
| 736 | Macro expansion will also happen on the content of $CGIT_CONFIG, if |
| 737 | defined. |
| 738 | |
| 739 | One usage of this feature is virtual hosting, which in its simplest form |
| 740 | can be accomplished by adding the following line to /etc/cgitrc: |
| 741 | |
| 742 | include=/etc/cgitrc.d/$HTTP_HOST |
| 743 | |
Lars Hjemli | a1429db | 2011-06-06 20:49:13 +0000 | [diff] [blame] | 744 | The following options are expanded during request processing, and support |
| 745 | the environment variables defined in "FILTER API": |
| 746 | |
| 747 | - clone-url |
| 748 | - repo.clone-url |
| 749 | |
Lars Hjemli | ef13e5e | 2011-06-13 21:58:39 +0000 | [diff] [blame] | 750 | |
Jason A. Donenfeld | 2e8e9af | 2014-02-21 01:36:20 +0100 | [diff] [blame] | 751 | CACHE |
| 752 | ------ |
| 753 | |
| 754 | All cache ttl values are in minutes. Negative ttl values indicate that a page |
| 755 | type will never expire, and thus the first time a URL is accessed, the result |
| 756 | will be cached indefinitely, even if the underlying git repository changes. |
| 757 | Conversely, when a ttl value is zero, the cache is disabled for that |
| 758 | particular page type, and the page type is never cached. |
| 759 | |
| 760 | |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 761 | EXAMPLE CGITRC FILE |
| 762 | ------------------- |
| 763 | |
Lars Hjemli | b875a9e | 2009-02-12 10:02:09 +0100 | [diff] [blame] | 764 | .... |
Přemysl Janouch | 88028ad | 2013-09-11 20:10:10 +0200 | [diff] [blame] | 765 | # Enable caching of up to 1000 output entries |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 766 | cache-size=1000 |
| 767 | |
| 768 | |
Lars Hjemli | a1429db | 2011-06-06 20:49:13 +0000 | [diff] [blame] | 769 | # Specify some default clone urls using macro expansion |
| 770 | clone-url=git://foo.org/$CGIT_REPO_URL git@foo.org:$CGIT_REPO_URL |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 771 | |
| 772 | # Specify the css url |
| 773 | css=/css/cgit.css |
| 774 | |
| 775 | |
Jason A. Donenfeld | d6d3dbc | 2013-05-27 21:47:02 +0200 | [diff] [blame] | 776 | # Show owner on index page |
| 777 | enable-index-owner=1 |
| 778 | |
| 779 | |
| 780 | # Allow http transport git clone |
Přemysl Janouch | 17e6a2a | 2013-09-11 20:10:13 +0200 | [diff] [blame] | 781 | enable-http-clone=1 |
Jason A. Donenfeld | d6d3dbc | 2013-05-27 21:47:02 +0200 | [diff] [blame] | 782 | |
| 783 | |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 784 | # Show extra links for each repository on the index page |
| 785 | enable-index-links=1 |
| 786 | |
| 787 | |
Johan Herland | 9a8d39c | 2010-11-15 18:39:50 +0100 | [diff] [blame] | 788 | # Enable ASCII art commit history graph on the log pages |
| 789 | enable-commit-graph=1 |
| 790 | |
| 791 | |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 792 | # Show number of affected files per commit on the log pages |
| 793 | enable-log-filecount=1 |
| 794 | |
| 795 | |
| 796 | # Show number of added/removed lines per commit on the log pages |
| 797 | enable-log-linecount=1 |
| 798 | |
| 799 | |
Jason A. Donenfeld | d6d3dbc | 2013-05-27 21:47:02 +0200 | [diff] [blame] | 800 | # Sort branches by date |
| 801 | branch-sort=age |
| 802 | |
| 803 | |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 804 | # Add a cgit favicon |
| 805 | favicon=/favicon.ico |
| 806 | |
| 807 | |
| 808 | # Use a custom logo |
| 809 | logo=/img/mylogo.png |
| 810 | |
| 811 | |
Lars Hjemli | fb2f3f6 | 2008-12-07 13:17:21 +0100 | [diff] [blame] | 812 | # Enable statistics per week, month and quarter |
| 813 | max-stats=quarter |
| 814 | |
| 815 | |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 816 | # Set the title and heading of the repository index page |
Todd Zullinger | 66df113 | 2010-09-06 09:31:26 -0400 | [diff] [blame] | 817 | root-title=example.com git repositories |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 818 | |
| 819 | |
| 820 | # Set a subheading for the repository index page |
| 821 | root-desc=tracking the foobar development |
| 822 | |
| 823 | |
Todd Zullinger | 66df113 | 2010-09-06 09:31:26 -0400 | [diff] [blame] | 824 | # Include some more info about example.com on the index page |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 825 | root-readme=/var/www/htdocs/about.html |
| 826 | |
| 827 | |
Todd Zullinger | 3796c2d | 2009-01-11 18:23:39 -0500 | [diff] [blame] | 828 | # Allow download of tar.gz, tar.bz2 and zip-files |
| 829 | snapshots=tar.gz tar.bz2 zip |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 830 | |
| 831 | |
| 832 | ## |
Lars Hjemli | c4d46c7 | 2009-02-13 20:43:30 +0100 | [diff] [blame] | 833 | ## List of common mimetypes |
| 834 | ## |
| 835 | |
Johan Herland | 9ce5d05 | 2010-06-10 01:09:22 +0200 | [diff] [blame] | 836 | mimetype.gif=image/gif |
Lars Hjemli | c4d46c7 | 2009-02-13 20:43:30 +0100 | [diff] [blame] | 837 | mimetype.html=text/html |
| 838 | mimetype.jpg=image/jpeg |
| 839 | mimetype.jpeg=image/jpeg |
| 840 | mimetype.pdf=application/pdf |
| 841 | mimetype.png=image/png |
| 842 | mimetype.svg=image/svg+xml |
| 843 | |
| 844 | |
Přemysl Janouch | 88028ad | 2013-09-11 20:10:10 +0200 | [diff] [blame] | 845 | # Highlight source code with python pygments-based highlighter |
Jason A. Donenfeld | d6d3dbc | 2013-05-27 21:47:02 +0200 | [diff] [blame] | 846 | source-filter=/var/www/cgit/filters/syntax-highlighting.py |
| 847 | |
| 848 | # Format markdown, restructuredtext, manpages, text files, and html files |
| 849 | # through the right converters |
| 850 | about-filter=/var/www/cgit/filters/about-formatting.sh |
| 851 | |
| 852 | ## |
| 853 | ## Search for these files in the root of the default branch of repositories |
| 854 | ## for coming up with the about page: |
| 855 | ## |
| 856 | readme=:README.md |
| 857 | readme=:readme.md |
| 858 | readme=:README.mkd |
| 859 | readme=:readme.mkd |
| 860 | readme=:README.rst |
| 861 | readme=:readme.rst |
| 862 | readme=:README.html |
| 863 | readme=:readme.html |
| 864 | readme=:README.htm |
| 865 | readme=:readme.htm |
| 866 | readme=:README.txt |
| 867 | readme=:readme.txt |
| 868 | readme=:README |
| 869 | readme=:readme |
| 870 | readme=:INSTALL.md |
| 871 | readme=:install.md |
| 872 | readme=:INSTALL.mkd |
| 873 | readme=:install.mkd |
| 874 | readme=:INSTALL.rst |
| 875 | readme=:install.rst |
| 876 | readme=:INSTALL.html |
| 877 | readme=:install.html |
| 878 | readme=:INSTALL.htm |
| 879 | readme=:install.htm |
| 880 | readme=:INSTALL.txt |
| 881 | readme=:install.txt |
| 882 | readme=:INSTALL |
| 883 | readme=:install |
| 884 | |
| 885 | |
Lars Hjemli | c4d46c7 | 2009-02-13 20:43:30 +0100 | [diff] [blame] | 886 | ## |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 887 | ## List of repositories. |
Loui Chang | 8071e18 | 2009-09-14 01:21:11 -0400 | [diff] [blame] | 888 | ## PS: Any repositories listed when section is unset will not be |
| 889 | ## displayed under a section heading |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 890 | ## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos') |
| 891 | ## and included like this: |
| 892 | ## include=/etc/cgitrepos |
| 893 | ## |
| 894 | |
| 895 | |
| 896 | repo.url=foo |
| 897 | repo.path=/pub/git/foo.git |
| 898 | repo.desc=the master foo repository |
Todd Zullinger | 66df113 | 2010-09-06 09:31:26 -0400 | [diff] [blame] | 899 | repo.owner=fooman@example.com |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 900 | repo.readme=info/web/about.html |
| 901 | |
| 902 | |
| 903 | repo.url=bar |
| 904 | repo.path=/pub/git/bar.git |
| 905 | repo.desc=the bars for your foo |
Todd Zullinger | 66df113 | 2010-09-06 09:31:26 -0400 | [diff] [blame] | 906 | repo.owner=barman@example.com |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 907 | repo.readme=info/web/about.html |
| 908 | |
| 909 | |
| 910 | # The next repositories will be displayed under the 'extras' heading |
Loui Chang | 8071e18 | 2009-09-14 01:21:11 -0400 | [diff] [blame] | 911 | section=extras |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 912 | |
| 913 | |
| 914 | repo.url=baz |
| 915 | repo.path=/pub/git/baz.git |
| 916 | repo.desc=a set of extensions for bar users |
| 917 | |
| 918 | repo.url=wiz |
| 919 | repo.path=/pub/git/wiz.git |
| 920 | repo.desc=the wizard of foo |
| 921 | |
| 922 | |
| 923 | # Add some mirrored repositories |
Loui Chang | 8071e18 | 2009-09-14 01:21:11 -0400 | [diff] [blame] | 924 | section=mirrors |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 925 | |
| 926 | |
| 927 | repo.url=git |
| 928 | repo.path=/pub/git/git.git |
| 929 | repo.desc=the dscm |
| 930 | |
| 931 | |
| 932 | repo.url=linux |
| 933 | repo.path=/pub/git/linux.git |
| 934 | repo.desc=the kernel |
| 935 | |
| 936 | # Disable adhoc downloads of this repo |
| 937 | repo.snapshots=0 |
| 938 | |
| 939 | # Disable line-counts for this repo |
| 940 | repo.enable-log-linecount=0 |
| 941 | |
Lars Hjemli | fb2f3f6 | 2008-12-07 13:17:21 +0100 | [diff] [blame] | 942 | # Restrict the max statistics period for this repo |
| 943 | repo.max-stats=month |
Lars Hjemli | b875a9e | 2009-02-12 10:02:09 +0100 | [diff] [blame] | 944 | .... |
Lars Hjemli | fb2f3f6 | 2008-12-07 13:17:21 +0100 | [diff] [blame] | 945 | |
Lars Hjemli | df46123 | 2008-10-05 18:55:49 +0200 | [diff] [blame] | 946 | |
| 947 | BUGS |
| 948 | ---- |
| 949 | Comments currently cannot appear on the same line as a setting; the comment |
| 950 | will be included as part of the value. E.g. this line: |
| 951 | |
| 952 | robots=index # allow indexing |
| 953 | |
| 954 | will generate the following html element: |
| 955 | |
| 956 | <meta name='robots' content='index # allow indexing'/> |
| 957 | |
| 958 | |
| 959 | |
| 960 | AUTHOR |
| 961 | ------ |
| 962 | Lars Hjemli <hjemli@gmail.com> |
Jason A. Donenfeld | 2e4a941 | 2010-07-29 19:47:50 +0200 | [diff] [blame] | 963 | Jason A. Donenfeld <Jason@zx2c4.com> |