| Shawn O. Pearce | e31d02c | 2009-12-08 12:21:37 -0800 | [diff] [blame] | 1 | Gerrit Code Review - Configuration |
| 2 | ================================== |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 3 | |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 4 | File `etc/gerrit.config` |
| 5 | ------------------------ |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 6 | |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 7 | The optional file `'$site_path'/etc/gerrit.config` is a Git-style |
| 8 | config file that controls many host specific settings for Gerrit. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 9 | |
| 10 | [NOTE] |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 11 | The contents of the `etc/gerrit.config` file are cached at startup |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 12 | by Gerrit. If you modify any propeties in this file, Gerrit needs |
| 13 | to be restarted before it will use the new values. |
| 14 | |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 15 | Sample `etc/gerrit.config`: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 16 | ---- |
| 17 | [core] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 18 | packedGitLimit = 200 m |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 19 | |
| 20 | [cache] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 21 | directory = /var/cache/gerrit2 |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 22 | |
| 23 | [cache "diff"] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 24 | diskbuffer = 10 m |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 25 | ---- |
| 26 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 27 | [[auth]]Section auth |
| 28 | ~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 29 | |
| 30 | See also link:config-sso.html[SSO configuration]. |
| 31 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 32 | [[auth.type]]auth.type:: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 33 | + |
| Shawn O. Pearce | 2920ef3 | 2009-08-03 08:03:34 -0700 | [diff] [blame] | 34 | Type of user authentication employed by Gerrit. The supported |
| 35 | values are: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 36 | + |
| 37 | * `OpenID` |
| 38 | + |
| 39 | The default setting. Gerrit uses any valid OpenID |
| 40 | provider chosen by the end-user. For more information see |
| Shawn O. Pearce | 2920ef3 | 2009-08-03 08:03:34 -0700 | [diff] [blame] | 41 | http://openid.net/[openid.net]. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 42 | + |
| 43 | * `HTTP` |
| 44 | + |
| Shawn O. Pearce | 2920ef3 | 2009-08-03 08:03:34 -0700 | [diff] [blame] | 45 | Gerrit relies upon data presented in the HTTP request. This includes |
| 46 | HTTP basic authentication, or some types of commerical single-sign-on |
| 47 | solutions. With this setting enabled the authentication must |
| 48 | take place in the web server or servlet container, and not from |
| 49 | within Gerrit. |
| 50 | + |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 51 | * `HTTP_LDAP` |
| 52 | + |
| 53 | Exactly like `HTTP` (above), but additionally Gerrit pre-populates |
| 54 | a user's full name and email address based on information obtained |
| 55 | from the user's account object in LDAP. The user's group membership |
| 56 | is also pulled from LDAP, making any LDAP groups that a user is a |
| 57 | member of available as groups in Gerrit. |
| 58 | + |
| Sasa Zivkov | eabc897 | 2010-10-04 15:47:08 +0200 | [diff] [blame] | 59 | * `CLIENT_SSL_CERT_LDAP` |
| 60 | + |
| 61 | This authentication type is actually kind of SSO. Gerrit will configure |
| 62 | Jetty's SSL channel to request client's SSL certificate. For this |
| 63 | authentication to work a Gerrit administrator has to import the root |
| 64 | certificate of the trust chain used to issue the client's certificate |
| 65 | into the <review-site>/etc/keystore. |
| 66 | After the authentication is done Gerrit will obtain basic user |
| 67 | registration (name and email) from LDAP, and some group memberships. |
| 68 | Therefore, the "_LDAP" suffix in the name of this authentication type. |
| 69 | This authentication type can only be used under hosted daemon mode, and |
| 70 | the httpd.listenUrl must use https:// as the protocol. |
| 71 | + |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 72 | * `LDAP` |
| 73 | + |
| 74 | Gerrit prompts the user to enter a username and a password, which |
| 75 | it then verifies by performing a simple bind against the configured |
| 76 | <<ldap.server,ldap.server>>. In this configuration the web server |
| 77 | is not involved in the user authentication process. |
| 78 | + |
| Shawn O. Pearce | c892d34 | 2010-02-17 17:00:50 -0800 | [diff] [blame] | 79 | The actual username used in the LDAP simple bind request is the |
| 80 | account's full DN, which is discovered by first querying the |
| 81 | directory using either an anonymous request, or the configured |
| 82 | <<ldap.username>> identity. |
| 83 | |
| 84 | * `LDAP_BIND` |
| 85 | + |
| 86 | Gerrit prompts the user to enter a username and a password, which |
| 87 | it then verifies by performing a simple bind against the configured |
| 88 | <<ldap.server,ldap.server>>. In this configuration the web server |
| 89 | is not involved in the user authentication process. |
| 90 | + |
| 91 | Unlike LDAP above, the username used to perform the LDAP simple bind |
| 92 | request is the exact string supplied by in the dialog by the user. |
| 93 | The configured <<ldap.username>> identity is not used to obtain |
| 94 | account information. |
| 95 | + |
| Shawn O. Pearce | 2920ef3 | 2009-08-03 08:03:34 -0700 | [diff] [blame] | 96 | * `DEVELOPMENT_BECOME_ANY_ACCOUNT` |
| 97 | + |
| 98 | *DO NOT USE*. Only for use in a development environment. |
| 99 | + |
| 100 | When this is the configured authentication method a hyperlink titled |
| 101 | `Become` appears in the top right corner of the page, taking the |
| 102 | user to a form where they can enter the username of any existing |
| 103 | user account, and immediately login as that account, without any |
| 104 | authentication taking place. This form of authentication is only |
| 105 | useful for the GWT hosted mode shell, where OpenID authentication |
| 106 | redirects might be risky to the developer's host computer, and HTTP |
| 107 | authentication is not possible. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 108 | |
| 109 | + |
| 110 | By default, OpenID. |
| 111 | |
| Shawn O. Pearce | 533cafc | 2010-05-11 16:05:27 -0700 | [diff] [blame] | 112 | [[auth.allowedOpenID]]auth.allowedOpenID:: |
| 113 | + |
| 114 | List of permitted OpenID providers. A user may only authenticate |
| 115 | with an OpenID that matches this list. Only used if `auth.type` |
| 116 | was set to OpenID (the default). |
| 117 | + |
| Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 118 | Patterns may be either a |
| 119 | link:http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html[standard |
| 120 | Java regular expression (java.util.regex)] (start with `^` and |
| Shawn O. Pearce | 533cafc | 2010-05-11 16:05:27 -0700 | [diff] [blame] | 121 | end with `$`) or be a simple prefix (any other string). |
| 122 | + |
| 123 | By default, the list contains two values, `http://` and `https://`, |
| 124 | allowing users to authenticate with any OpenID provider. |
| 125 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 126 | [[auth.trustedOpenID]]auth.trustedOpenID:: |
| Shawn O. Pearce | d7c026d | 2009-08-05 20:11:22 -0700 | [diff] [blame] | 127 | + |
| 128 | List of trusted OpenID providers. Only used if `auth.type` was |
| 129 | set to OpenID (the default). |
| 130 | + |
| 131 | In order for a user to take advantage of permissions beyond those |
| 132 | granted to the `Anonymous Users` and `Registered Users` groups, |
| 133 | the user account must only have OpenIDs which match at least one |
| 134 | pattern from this list. |
| 135 | + |
| Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 136 | Patterns may be either a |
| 137 | link:http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html[standard |
| 138 | Java regular expression (java.util.regex)] (start with `^` and |
| Shawn O. Pearce | d7c026d | 2009-08-05 20:11:22 -0700 | [diff] [blame] | 139 | end with `$`) or be a simple prefix (any other string). |
| 140 | + |
| 141 | By default, the list contains two values, `http://` and `https://`, |
| 142 | allowing Gerrit to trust any OpenID it receives. |
| 143 | |
| Shawn O. Pearce | 89030bc | 2010-04-24 17:25:29 -0700 | [diff] [blame] | 144 | [[auth.maxOpenIdSessionAge]]auth.maxOpenIdSessionAge:: |
| 145 | + |
| 146 | Time in seconds before an OpenID provider must force the user |
| 147 | to authenticate themselves again before authentication to this |
| 148 | Gerrit server. Currently this is only a polite request, and users |
| 149 | coming from providers that don't support the PAPE extension will |
| 150 | be accepted anyway. In the future it may be enforced, rejecting |
| 151 | users coming from providers that don't honor the max session age. |
| 152 | + |
| 153 | If set to 0, the provider will always force the user to authenticate |
| 154 | (e.g. supply their password). Values should use common unit suffixes |
| 155 | to express their setting: |
| 156 | + |
| 157 | * s, sec, second, seconds |
| 158 | * m, min, minute, minutes |
| 159 | * h, hr, hour, hours |
| 160 | * d, day, days |
| 161 | * w, week, weeks (`1 week` is treated as `7 days`) |
| 162 | * mon, month, months (`1 month` is treated as `30 days`) |
| 163 | * y, year, years (`1 year` is treated as `365 days`) |
| 164 | |
| 165 | + |
| 166 | Default is -1, permitting infinite time between authentications. |
| 167 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 168 | [[auth.httpHeader]]auth.httpHeader:: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 169 | + |
| 170 | HTTP header to trust the username from, or unset to select HTTP basic |
| 171 | or digest authentication. Only used if `auth.type` was set to HTTP. |
| 172 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 173 | [[auth.logoutUrl]]auth.logoutUrl:: |
| Shawn O. Pearce | 12b5d84 | 2009-08-15 15:11:10 -0700 | [diff] [blame] | 174 | + |
| 175 | URL to redirect a browser to after the end-user has clicked on the |
| 176 | "Sign Out" link in the upper right corner. Organizations using an |
| 177 | enterprise single-sign-on solution may want to redirect the browser |
| 178 | to the SSO product's sign-out page. |
| 179 | + |
| 180 | If not set, the redirect returns to the list of all open changes. |
| 181 | |
| Shawn O. Pearce | c9d26b5 | 2009-12-16 08:05:27 -0800 | [diff] [blame] | 182 | [[auth.registerUrl]]auth.registerUrl:: |
| 183 | + |
| 184 | Target for the "Register" link in the upper right corner. Used only |
| 185 | when auth.type is `LDAP`. |
| 186 | + |
| 187 | If not set, no "Register" link is displayed. |
| 188 | |
| Piotr Sikora | 7cec2f8 | 2011-02-26 12:57:30 +0000 | [diff] [blame] | 189 | [[auth.cookiePath]]auth.cookiePath:: |
| 190 | + |
| 191 | Sets "path" attribute of the authentication cookie. |
| 192 | + |
| 193 | If not set, HTTP request's path is used. |
| 194 | |
| 195 | [[auth.cookieSecure]]auth.cookieSecure:: |
| 196 | + |
| 197 | Sets "secure" flag of the authentication cookie. If true, cookies |
| 198 | will be transmitted only over HTTPS protocol. |
| 199 | + |
| 200 | By default, false. |
| 201 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 202 | [[auth.emailFormat]]auth.emailFormat:: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 203 | + |
| 204 | Optional format string to construct user email addresses out of |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 205 | user login names. Only used if auth.type is `HTTP`, `HTTP_LDAP` |
| 206 | or `LDAP`. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 207 | + |
| 208 | This value can be set to a format string, where `\{0\}` is replaced |
| 209 | with the login name. E.g. "\{0\}+gerrit@example.com" with a user |
| 210 | login name of "foo" will produce "foo+gerrit@example.com" during |
| 211 | the first time user "foo" registers. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 212 | + |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 213 | If the site is using `HTTP_LDAP` or `LDAP`, using this option is |
| 214 | discouraged. Setting `ldap.accountEmailAddress` and importing the |
| 215 | email address from the LDAP directory is generally preferred. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 216 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 217 | [[auth.contributorAgreements]]auth.contributorAgreements:: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 218 | + |
| 219 | Controls whether or not the contributor agreement features are |
| 220 | enabled for the Gerrit site. If enabled a user must complete a |
| 221 | contributor agreement before they can upload changes. |
| 222 | + |
| 223 | If enabled, the admin must also insert one or more rows into |
| 224 | `contributor_agreements` and create agreement files under |
| 225 | `'$site_path'/static`, so users can actually complete one or |
| Grzegorz Kossakowski | 28e4e1b | 2009-09-23 11:33:34 -0700 | [diff] [blame] | 226 | more agreements. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 227 | + |
| 228 | By default this is false (no agreements are used). |
| 229 | |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 230 | auth.allowGoogleAccountUpgrade:: |
| 231 | + |
| Shawn O. Pearce | 48eea07 | 2009-08-31 10:53:12 -0700 | [diff] [blame] | 232 | Allows Google Account users to automatically update their Gerrit |
| 233 | account when/if their Google Account OpenID identity token changes. |
| 234 | Identity tokens can change if the server changes hostnames, or |
| 235 | for other reasons known only to Google. The upgrade path works |
| 236 | by matching users by email address if the identity is not present, |
| 237 | and then changing the identity. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 238 | + |
| Shawn O. Pearce | 48eea07 | 2009-08-31 10:53:12 -0700 | [diff] [blame] | 239 | This setting also permits old Gerrit 1.x users to seamlessly upgrade |
| 240 | from Google Accounts on Google App Engine to OpenID authentication. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 241 | + |
| Shawn O. Pearce | 48eea07 | 2009-08-31 10:53:12 -0700 | [diff] [blame] | 242 | Having this enabled incurs an extra database query when Google |
| Shawn O. Pearce | e31d02c | 2009-12-08 12:21:37 -0800 | [diff] [blame] | 243 | Account users register with the Gerrit server. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 244 | + |
| 245 | By default, unset/false. |
| 246 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 247 | [[cache]]Section cache |
| 248 | ~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 249 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 250 | [[cache.directory]]cache.directory:: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 251 | + |
| 252 | Path to a local directory where Gerrit can write cached entities for |
| Shawn O. Pearce | 4b21228 | 2009-08-05 19:45:56 -0700 | [diff] [blame] | 253 | future lookup. This local disk cache is used to retain potentially |
| 254 | expensive to compute information across restarts. If the location |
| 255 | does not exist, Gerrit will try to create it. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 256 | + |
| Shawn O. Pearce | 4b21228 | 2009-08-05 19:45:56 -0700 | [diff] [blame] | 257 | If not absolute, the path is resolved relative to `$site_path`. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 258 | + |
| Shawn O. Pearce | 4b21228 | 2009-08-05 19:45:56 -0700 | [diff] [blame] | 259 | Default is unset, no disk cache. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 260 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 261 | [[cache.name.maxAge]]cache.<name>.maxAge:: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 262 | + |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 263 | Maximum age to keep an entry in the cache. If an entry has not |
| 264 | been accessed in this period of time, it is removed from the cache. |
| 265 | Values should use common unit suffixes to express their setting: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 266 | + |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 267 | * s, sec, second, seconds |
| 268 | * m, min, minute, minutes |
| 269 | * h, hr, hour, hours |
| 270 | * d, day, days |
| 271 | * w, week, weeks (`1 week` is treated as `7 days`) |
| 272 | * mon, month, months (`1 month` is treated as `30 days`) |
| 273 | * y, year, years (`1 year` is treated as `365 days`) |
| 274 | |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 275 | + |
| Shawn O. Pearce | 3fdbf39 | 2009-09-04 18:08:26 -0700 | [diff] [blame] | 276 | If a unit suffix is not specified, `minutes` is assumed. If 0 is |
| 277 | supplied, the maximum age is infinite and items are never purged |
| 278 | except when the cache is full. |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 279 | + |
| 280 | Default is `90 days` for most caches, except: |
| 281 | + |
| Shawn O. Pearce | 05687e9 | 2011-04-04 17:29:03 -0400 | [diff] [blame] | 282 | * `"adv_bases"`: default is `10 minutes` |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 283 | * `"ldap_groups"`: default is `1 hour` |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 284 | * `"web_sessions"`: default is `12 hours` |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 285 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 286 | [[cache.name.memoryLimit]]cache.<name>.memoryLimit:: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 287 | + |
| 288 | Maximum number of cache items to retain in memory. Keep in mind |
| 289 | this is total number of items, not bytes of heap used. |
| 290 | + |
| Shawn O. Pearce | efaf979 | 2009-09-02 18:12:52 -0700 | [diff] [blame] | 291 | Default is 1024 for most caches, except: |
| 292 | + |
| Shawn O. Pearce | 05687e9 | 2011-04-04 17:29:03 -0400 | [diff] [blame] | 293 | * `"adv_bases"`: default is `4096` |
| Shawn O. Pearce | efaf979 | 2009-09-02 18:12:52 -0700 | [diff] [blame] | 294 | * `"diff"`: default is `128` |
| Shawn O. Pearce | f0cfe53 | 2011-04-11 23:40:06 -0400 | [diff] [blame] | 295 | * `"diff_intraline"`: default is `128` |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 296 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 297 | [[cache.name.diskLimit]]cache.<name>.diskLimit:: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 298 | + |
| 299 | Maximum number of cache items to retain on disk, if this cache |
| 300 | supports storing its items to disk. Like memoryLimit, this is |
| Shawn O. Pearce | a5e36d5 | 2009-08-17 07:05:03 -0700 | [diff] [blame] | 301 | total number of items, not bytes of disk used. If 0, disk storage |
| 302 | for this cache is disabled. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 303 | + |
| 304 | Default is 16384. |
| 305 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 306 | [[cache.name.diskBuffer]]cache.<name>.diskBuffer:: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 307 | + |
| 308 | Number of bytes to buffer in memory before writing less frequently |
| 309 | accessed cache items to disk, if this cache supports storing its |
| 310 | items to disk. |
| 311 | + |
| 312 | Default is 5 MiB. |
| 313 | + |
| 314 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 315 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 316 | [[cache_names]]Standard Caches |
| Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 317 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 318 | |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 319 | cache `"accounts"`:: |
| 320 | + |
| Shawn O. Pearce | 4dba988 | 2009-08-05 19:55:15 -0700 | [diff] [blame] | 321 | Cache entries contain important details of an active user, including |
| 322 | their display name, preferences, known email addresses, and group |
| 323 | memberships. Entry information is obtained from the following |
| 324 | database tables: |
| 325 | + |
| 326 | * `accounts` |
| 327 | + |
| 328 | * `account_group_members` |
| 329 | + |
| 330 | * `account_external_ids` |
| 331 | |
| 332 | + |
| 333 | If direct updates are made to any of these database tables, this |
| 334 | cache should be flushed. |
| 335 | |
| 336 | cache `"accounts_byemail"`:: |
| 337 | + |
| 338 | Caches account identities keyed by email address, which is scanned |
| 339 | from the `account_external_ids` database table. If updates are |
| 340 | made to this table, this cache should be flushed. |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 341 | |
| Shawn O. Pearce | 05687e9 | 2011-04-04 17:29:03 -0400 | [diff] [blame] | 342 | cache `"adv_bases"`:: |
| 343 | + |
| 344 | Used only for push over smart HTTP when branch level access controls |
| 345 | are enabled. The cache entry contains all commits that are avaliable |
| 346 | for the client to use as potential delta bases. Push over smart HTTP |
| 347 | requires two HTTP requests, and this cache tries to carry state from |
| 348 | the first request into the second to ensure it can complete. |
| 349 | |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 350 | cache `"diff"`:: |
| 351 | + |
| Shawn O. Pearce | efaf979 | 2009-09-02 18:12:52 -0700 | [diff] [blame] | 352 | Each item caches the differences between two commits, at both the |
| 353 | directory and file levels. Gerrit uses this cache to accelerate |
| 354 | the display of affected file names, as well as file contents. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 355 | + |
| Shawn O. Pearce | efaf979 | 2009-09-02 18:12:52 -0700 | [diff] [blame] | 356 | Entries in this cache are relatively large, so the memory limit |
| 357 | should not be set incredibly high. Administrators should try to |
| 358 | target cache.diff.memoryLimit to be roughly the number of changes |
| 359 | which their users will process in a 1 or 2 day span. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 360 | + |
| 361 | Keeping entries for 90 days gives sufficient time for most changes |
| 362 | to be submitted or abandoned before their relevant difference items |
| 363 | expire out. |
| 364 | |
| Shawn O. Pearce | f0cfe53 | 2011-04-11 23:40:06 -0400 | [diff] [blame] | 365 | cache `"diff_intraline"`:: |
| 366 | + |
| 367 | Each item caches the intraline difference of one file, when compared |
| 368 | between two commits. Gerrit uses this cache to accelerate display of |
| 369 | intraline differences when viewing a file. |
| 370 | + |
| 371 | Entries in this cache are relatively large, so the memory limit |
| 372 | should not be set incredibly high. Administrators should try to |
| 373 | target cache.diff.memoryLimit to be roughly the number of changes |
| 374 | which their users will process in a 1 or 2 day span. |
| 375 | + |
| 376 | Keeping entries for 90 days gives sufficient time for most changes |
| 377 | to be submitted or abandoned before their relevant difference items |
| 378 | expire out. |
| 379 | |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 380 | cache `"groups"`:: |
| 381 | + |
| Shawn O. Pearce | 4dba988 | 2009-08-05 19:55:15 -0700 | [diff] [blame] | 382 | Caches the basic group information from the `account_groups` table, |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 383 | including the group owner, name, and description. |
| 384 | + |
| 385 | Gerrit group membership obtained from the `account_group_members` |
| 386 | table is cached under the `"accounts"` cache, above. External group |
| 387 | membership obtained from LDAP is cached under `"ldap_groups"`. |
| 388 | |
| Matt Fischer | 620255a | 2011-03-22 14:28:23 -0500 | [diff] [blame] | 389 | cache `"groups_byinclude"`:: |
| 390 | + |
| 391 | Caches group inclusions in other groups. If direct updates are made |
| 392 | to the `account_group_includes` table, this cache should be flushed. |
| 393 | |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 394 | cache `"ldap_groups"`:: |
| 395 | + |
| 396 | Caches the LDAP groups that a user belongs to, if LDAP has been |
| 397 | configured on this server. This cache should be configured with a |
| 398 | low maxAge setting, to ensure LDAP modifications are picked up in |
| 399 | a timely fashion. |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 400 | |
| Shawn O. Pearce | 6d26f4a | 2009-08-24 15:43:52 -0700 | [diff] [blame] | 401 | cache `"ldap_usernames"`:: |
| 402 | + |
| 403 | Caches a mapping of LDAP username to Gerrit account identity. The |
| 404 | cache automatically updates when a user first creates their account |
| 405 | within Gerrit, so the cache expire time is largely irrelevant. |
| 406 | |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 407 | cache `"projects"`:: |
| 408 | + |
| 409 | Caches the project description records, from the `projects` table |
| 410 | in the database. If a project record is updated or deleted, this |
| 411 | cache should be flushed. Newly inserted projects do not require |
| 412 | a cache flush, as they will be read upon first reference. |
| 413 | |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 414 | cache `"sshkeys"`:: |
| 415 | + |
| 416 | Caches unpacked versions of user SSH keys, so the internal SSH daemon |
| 417 | can match against them during authentication. The unit of storage |
| 418 | is per-user, so 1024 items translates to 1024 unique user accounts. |
| 419 | As each individual user account may configure multiple SSH keys, |
| 420 | the total number of keys may be larger than the item count. |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 421 | + |
| 422 | This cache is based off the `account_ssh_keys` table and the |
| 423 | `accounts.ssh_user_name` column in the database. If either is |
| 424 | modified directly, this cache should be flushed. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 425 | |
| Shawn O. Pearce | b09322b | 2009-08-15 17:49:00 -0700 | [diff] [blame] | 426 | cache `"web_sessions"`:: |
| 427 | + |
| 428 | Tracks the live user sessions coming in over HTTP. Flushing this |
| 429 | cache would cause all users to be signed out immediately, forcing |
| Shawn O. Pearce | 727d80f | 2009-08-17 07:57:54 -0700 | [diff] [blame] | 430 | them to sign-in again. To avoid breaking active users, this cache |
| 431 | is not flushed automatically by `gerrit flush-caches --all`, but |
| 432 | instead must be explicitly requested. |
| 433 | + |
| 434 | If no disk cache is configured (or `cache.web_sessions.diskLimit` |
| 435 | is set to 0) a server restart will force all users to sign-out, |
| 436 | and need to sign-in again after the restart, as the cache was |
| 437 | unable to persist the session information. Enabling a disk cache |
| 438 | is strongly recommended. |
| 439 | + |
| 440 | Session storage is relatively inexpensive, the average entry in |
| 441 | this cache is approximately 248 bytes, depending on the JVM. |
| Shawn O. Pearce | b09322b | 2009-08-15 17:49:00 -0700 | [diff] [blame] | 442 | |
| Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 443 | See also link:cmd-flush-caches.html[gerrit flush-caches]. |
| 444 | |
| Shawn O. Pearce | 29de436 | 2010-03-03 17:51:26 -0800 | [diff] [blame] | 445 | [[cache_options]]Cache Options |
| 446 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 447 | |
| Shawn O. Pearce | 617aa39 | 2010-11-15 14:03:28 -0800 | [diff] [blame] | 448 | cache.diff_intraline.maxIdleWorkers:: |
| 449 | + |
| 450 | Number of idle worker threads to maintain for the intraline difference |
| 451 | computations. There is no upper bound on how many concurrent requests |
| 452 | can occur at once, if additional threads are started to handle a peak |
| 453 | load, only this many will remaining idle afterwards. |
| 454 | + |
| 455 | Default is 1.5x number of available CPUs. |
| 456 | |
| 457 | cache.diff_intraline.timeout:: |
| 458 | + |
| 459 | Maximum number of milliseconds to wait for intraline difference data |
| 460 | before giving up and disabling it for a particular file pair. This is |
| 461 | a work around for an infinite loop bug in the intraline difference |
| 462 | implementation. If computation takes longer than the timeout the |
| 463 | worker thread is terminated and no intraline difference is displayed. |
| 464 | + |
| 465 | Values should use common unit suffixes to express their setting: |
| 466 | + |
| 467 | * ms, milliseconds |
| 468 | * s, sec, second, seconds |
| 469 | * m, min, minute, minutes |
| 470 | * h, hr, hour, hours |
| 471 | |
| 472 | + |
| 473 | If a unit suffix is not specified, `milliseconds` is assumed. |
| 474 | + |
| 475 | Default is 5 seconds. |
| 476 | |
| Shawn O. Pearce | 307dd4e | 2010-11-15 12:12:20 -0800 | [diff] [blame] | 477 | cache.diff_intraline.enabled:: |
| Shawn O. Pearce | 29de436 | 2010-03-03 17:51:26 -0800 | [diff] [blame] | 478 | + |
| 479 | Boolean to enable or disable the computation of intraline differences |
| Shawn O. Pearce | 307dd4e | 2010-11-15 12:12:20 -0800 | [diff] [blame] | 480 | when populating a diff cache entry. This flag is provided primarily |
| 481 | as a backdoor to disable the intraline difference feature if |
| 482 | necessary. To maintain backwards compatability with prior versions, |
| 483 | this setting will fallback to `cache.diff.intraline` if not set in the |
| 484 | configuration. |
| Shawn O. Pearce | 29de436 | 2010-03-03 17:51:26 -0800 | [diff] [blame] | 485 | + |
| 486 | Default is true, enabled. |
| 487 | |
| Shawn O. Pearce | b8e4e35 | 2011-05-19 18:09:01 -0700 | [diff] [blame] | 488 | cache.projects.checkFrequency:: |
| 489 | + |
| 490 | How often project configuration should be checked for update from Git. |
| 491 | Gerrit Code Review caches project access rules and configuration in |
| 492 | memory, checking the refs/meta/config branch every checkFrequency |
| 493 | minutes to see if a new revision should be loaded and used for future |
| 494 | access. Values can be specified using standard time unit abbreviations |
| 495 | ('ms', 'sec', 'min', etc.). |
| 496 | + |
| 497 | If set to 0, checks occur every time, which may slow down operations. |
| 498 | Administrators may force the cache to flush with |
| 499 | link:cmd-flush-caches.html[gerrit flush-caches]. |
| 500 | + |
| 501 | Default is 5 minutes. |
| 502 | |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 503 | |
| 504 | [[commentlink]]Section commentlink |
| 505 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 506 | Comment links are find/replace strings applied to change descriptions, |
| 507 | patch comments, and in-line code comments to turn set strings into |
| 508 | hyperlinks. One common use is for linking to bug-tracking systems. |
| 509 | |
| 510 | In the following example configuration the 'changeid' comment link |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 511 | will match typical Gerrit Change-Id values and create a hyperlink |
| 512 | to changes which reference it. The second configuration 'bugzilla' |
| 513 | will hyperlink terms such as 'bug 42' to an external bug tracker, |
| 514 | supplying the argument record number '42' for display. The third |
| 515 | configuration 'tracker' uses raw HTML to more preciously control |
| 516 | how the replacement is displayed to the user. |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 517 | |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 518 | ---- |
| 519 | [commentlink "changeid"] |
| 520 | match = (I[0-9a-f]{8,40}) |
| 521 | link = "#q,$1,n,z" |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 522 | |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 523 | [commentlink "bugzilla"] |
| Shawn O. Pearce | c99630a | 2010-02-21 19:11:56 -0800 | [diff] [blame] | 524 | match = "(bug\\s+#?)(\\d+)" |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 525 | link = http://bugs.example.com/show_bug.cgi?id=$2 |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 526 | |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 527 | [commentlink "tracker"] |
| 528 | match = ([Bb]ug:\\s+)(\\d+) |
| 529 | html = $1<a href=\"http://trak.example.com/$2\">$2</a> |
| 530 | ---- |
| 531 | |
| 532 | [[commentlink.name.match]]commentlink.<name>.match:: |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 533 | + |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 534 | A JavaScript regular expression to match positions to be replaced |
| 535 | with a hyperlink. Subexpressions of the matched string can be |
| 536 | stored using groups and accessed with `$'n'` syntax, where 'n' |
| 537 | is the group number, starting from 1. |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 538 | + |
| Shawn O. Pearce | c99630a | 2010-02-21 19:11:56 -0800 | [diff] [blame] | 539 | The configuration file parser eats one level of backslashes, so the |
| 540 | character class `\s` requires `\\s` in the configuration file. The |
| 541 | parser also terminates the line at the first `#`, so a match |
| 542 | expression containing # must be wrapped in double quotes. |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 543 | + |
| Shawn O. Pearce | 665beaa | 2010-02-21 22:41:03 -0800 | [diff] [blame] | 544 | To match case insensitive strings, a character class with both the |
| 545 | upper and lower case character for each position must be used. For |
| 546 | example, to match the string `bug` in a case insensitive way the match |
| 547 | pattern `[bB][uU][gG]` needs to be used. |
| 548 | + |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 549 | A common pattern to match is `bug\\s+(\\d+)`. |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 550 | |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 551 | [[commentlink.name.link]]commentlink.<name>.link:: |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 552 | + |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 553 | The URL to direct the user to whenever the regular expression is |
| 554 | matched. Groups in the match expression may be accessed as `$'n'`. |
| 555 | + |
| 556 | The link property is used only when the html property is not present. |
| 557 | |
| 558 | [[commentlink.name.html]]commentlink.<name>.html:: |
| 559 | + |
| 560 | HTML to replace the entire matched string with. If present, |
| 561 | this property overrides the link property above. Groups in the |
| 562 | match expression may be accessed as `$'n'`. |
| 563 | + |
| 564 | The configuration file eats double quotes, so escaping them as |
| 565 | `\"` is necessary to protect them from the parser. |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 566 | |
| 567 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 568 | [[contactstore]]Section contactstore |
| 569 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 570 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 571 | [[contactstore.url]]contactstore.url:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 572 | + |
| 573 | URL of the web based contact store Gerrit will send any offline |
| 574 | contact information to when it collects the data from users as part |
| 575 | of a contributor agreement. |
| 576 | + |
| 577 | See link:config-contact.html[Contact Information]. |
| 578 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 579 | [[contactstore.appsec]]contactstore.appsec:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 580 | + |
| 581 | Shared secret of the web based contact store. |
| 582 | |
| Shawn O. Pearce | e24c71fb | 2009-12-07 20:32:40 -0800 | [diff] [blame] | 583 | |
| 584 | [[container]]Section container |
| 585 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 586 | |
| 587 | These settings are applied only if Gerrit is started as the container |
| 588 | process through Gerrit's 'gerrit.sh' rc.d compatible wrapper script. |
| 589 | |
| 590 | [[container.heapLimit]]container.heapLimit:: |
| 591 | + |
| 592 | Maximum heap size of the Java process running Gerrit, in bytes. |
| 593 | This property is translated into the '-Xmx' flag for the JVM. |
| 594 | + |
| 595 | Default is platform and JVM specific. |
| 596 | + |
| 597 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 598 | |
| 599 | [[container.javaHome]]container.javaHome:: |
| 600 | + |
| 601 | Path of the JRE/JDK installation to run Gerrit with. If not set, the |
| 602 | Gerrit startup script will attempt to search your system and guess |
| 603 | a suitable JRE. Overrides the environment variable 'JAVA_HOME'. |
| 604 | |
| 605 | [[container.javaOptions]]container.javaOptions:: |
| 606 | + |
| 607 | Additional options to pass along to the Java runtime. If multiple |
| 608 | values are configured, they are passed in order on the command line, |
| 609 | separated by spaces. These options are appended onto 'JAVA_OPTIONS'. |
| 610 | |
| Fredrik Luthander | b8f7d6d | 2010-05-18 21:11:22 +0200 | [diff] [blame] | 611 | [[container.slave]]container.slave:: |
| 612 | + |
| 613 | Used on Gerrit slave installations. If set to true the Gerrit JVM is |
| 614 | called with the '--slave' switch, enabling slave mode. If no value is |
| 615 | set (or any other value), gerrit defaults to master mode. |
| 616 | |
| Shawn O. Pearce | e24c71fb | 2009-12-07 20:32:40 -0800 | [diff] [blame] | 617 | [[container.user]]container.user:: |
| 618 | + |
| 619 | Login name (or UID) of the operating system user the Gerrit JVM |
| 620 | will execute as. If not set, defaults to the user who launched |
| 621 | the 'gerrit.sh' wrapper script. |
| 622 | |
| 623 | [[container.war]]container.war:: |
| 624 | + |
| 625 | Path of the JAR file to start daemon execution with. This should |
| 626 | be the path of the local 'gerrit.war' archive. Overrides the |
| 627 | environment variable 'GERRIT_WAR'. |
| 628 | + |
| 629 | If not set, defaults to '$site_path/bin/gerrit.war', or to |
| 630 | '$HOME/gerrit.war'. |
| 631 | |
| 632 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 633 | [[core]]Section core |
| 634 | ~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 635 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 636 | [[core.packedGitWindowSize]]core.packedGitWindowSize:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 637 | + |
| 638 | Number of bytes of a pack file to load into memory in a single |
| 639 | read operation. This is the "page size" of the JGit buffer cache, |
| 640 | used for all pack access operations. All disk IO occurs as single |
| 641 | window reads. Setting this too large may cause the process to load |
| 642 | more data than is required; setting this too small may increase |
| 643 | the frequency of `read()` system calls. |
| 644 | + |
| 645 | Default on JGit is 8 KiB on all platforms. |
| 646 | + |
| 647 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 648 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 649 | [[core.packedGitLimit]]core.packedGitLimit:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 650 | + |
| 651 | Maximum number of bytes to load and cache in memory from pack files. |
| 652 | If JGit needs to access more than this many bytes it will unload less |
| 653 | frequently used windows to reclaim memory space within the process. |
| 654 | As this buffer must be shared with the rest of the JVM heap, it |
| 655 | should be a fraction of the total memory available. |
| 656 | + |
| 657 | Default on JGit is 10 MiB on all platforms. |
| 658 | + |
| 659 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 660 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 661 | [[core.deltaBaseCaseLimit]]core.deltaBaseCacheLimit:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 662 | + |
| 663 | Maximum number of bytes to reserve for caching base objects |
| 664 | that multiple deltafied objects reference. By storing the entire |
| 665 | decompressed base object in a cache Git is able to avoid unpacking |
| 666 | and decompressing frequently used base objects multiple times. |
| 667 | + |
| 668 | Default on JGit is 10 MiB on all platforms. You probably do not |
| 669 | need to adjust this value. |
| 670 | + |
| 671 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 672 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 673 | [[core.packedGitOpenFiles]]core.packedGitOpenFiles:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 674 | + |
| 675 | Maximum number of pack files to have open at once. A pack file |
| 676 | must be opened in order for any of its data to be available in |
| 677 | a cached window. |
| 678 | + |
| 679 | If you increase this to a larger setting you may need to also adjust |
| 680 | the ulimit on file descriptors for the host JVM, as Gerrit needs |
| 681 | additional file descriptors available for network sockets and other |
| 682 | repository data manipulation. |
| 683 | + |
| 684 | Default on JGit is 128 file descriptors on all platforms. |
| 685 | |
| Shawn O. Pearce | 329fe79 | 2010-09-03 15:44:23 -0700 | [diff] [blame] | 686 | [[core.streamFileThreshold]]core.streamFileThreshold:: |
| 687 | + |
| 688 | Largest object size, in bytes, that JGit will allocate as a |
| 689 | contiguous byte array. Any file revision larger than this threshold |
| 690 | will have to be streamed, typically requiring the use of temporary |
| 691 | files under '$GIT_DIR/objects' to implement psuedo-random access |
| 692 | during delta decompression. |
| 693 | + |
| 694 | Servers with very high traffic should set this to be larger than |
| 695 | the size of their common big files. For example a server managing |
| 696 | the Android platform typically has to deal with ~10-12 MiB XML |
| 697 | files, so `15 m` would be a reasonable setting in that environment. |
| 698 | Setting this too high may cause the JVM to run out of heap space |
| 699 | when handling very big binary files, such as device firmware or |
| 700 | CD-ROM ISO images. |
| 701 | + |
| Shawn O. Pearce | e3febd9 | 2010-10-13 21:17:53 -0700 | [diff] [blame] | 702 | Default is 50 MiB on all platforms. Prior to Gerrit 2.1.6, |
| Shawn O. Pearce | 329fe79 | 2010-09-03 15:44:23 -0700 | [diff] [blame] | 703 | this value was effectively 2047 MiB. |
| 704 | + |
| 705 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 706 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 707 | [[core.packedGitMmap]]core.packedGitMmap:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 708 | + |
| 709 | When true, JGit will use `mmap()` rather than `malloc()+read()` |
| 710 | to load data from pack files. The use of mmap can be problematic |
| 711 | on some JVMs as the garbage collector must deduce that a memory |
| 712 | mapped segment is no longer in use before a call to `munmap()` |
| 713 | can be made by the JVM native code. |
| 714 | + |
| 715 | In server applications (such as Gerrit) that need to access many |
| 716 | pack files, setting this to true risks artifically running out |
| 717 | of virtual address space, as the garbage collector cannot reclaim |
| 718 | unused mapped spaces fast enough. |
| 719 | + |
| 720 | Default on JGit is false. Although potentially slower, it yields |
| 721 | much more predictable behavior. |
| 722 | |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 723 | [[database]]Section database |
| 724 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 725 | |
| 726 | The database section configures where Gerrit stores its metadata |
| 727 | records about user accounts and change reviews. |
| 728 | |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 729 | ---- |
| 730 | [database] |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 731 | type = POSTGRESQL |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 732 | hostname = localhost |
| 733 | database = reviewdb |
| 734 | username = gerrit2 |
| 735 | password = s3kr3t |
| 736 | ---- |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 737 | |
| 738 | [[database.type]]database.type:: |
| 739 | + |
| 740 | Type of database server to connect to. If set this value will be |
| 741 | used to automatically create correct database.driver and database.url |
| 742 | values to open the connection. |
| 743 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 744 | * `POSTGRESQL` |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 745 | + |
| 746 | Connect to a PostgreSQL database server. |
| 747 | + |
| 748 | * `H2` |
| 749 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 750 | Connect to a local embedded H2 database. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 751 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 752 | * `MYSQL` |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 753 | + |
| 754 | Connect to a MySQL database server. |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 755 | + |
| 756 | * `JDBC` |
| 757 | + |
| 758 | Connect using a JDBC driver class name and URL. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 759 | |
| 760 | + |
| 761 | If not specified, database.driver and database.url are used as-is, |
| 762 | and if they are also not specified, defaults to H2. |
| 763 | |
| 764 | [[database.hostname]]database.hostname:: |
| 765 | + |
| 766 | Hostname of the database server. Defaults to 'localhost'. |
| 767 | |
| 768 | [[database.port]]database.port:: |
| 769 | + |
| 770 | Port number of the database server. Defaults to the default port |
| 771 | of the server named by database.type. |
| 772 | |
| 773 | [[database.database]]database.database:: |
| 774 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 775 | For POSTGRESQL or MYSQL, the name of the database on the server. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 776 | + |
| 777 | For H2, this is the path to the database, and if not absolute is |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 778 | relative to `'$site_path'`. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 779 | |
| 780 | [[database.username]]database.username:: |
| 781 | + |
| 782 | Username to connect to the database server as. |
| 783 | |
| 784 | [[database.password]]database.password:: |
| 785 | + |
| 786 | Password to authenticate to the database server with. |
| 787 | |
| 788 | [[database.driver]]database.driver:: |
| 789 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 790 | Name of the JDBC driver class to connect to the database with. |
| 791 | Setting this usually isn't necessary as it can be derived from |
| 792 | database.type or database.url for any supported database. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 793 | |
| 794 | [[database.url]]database.url:: |
| 795 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 796 | 'jdbc:' URL for the database. Setting this variable usually |
| 797 | isn't necessary as it can be constructed from the all of the |
| 798 | above properties. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 799 | |
| Shawn O. Pearce | 07f35177d | 2010-02-23 09:47:10 -0800 | [diff] [blame] | 800 | [[database.poolLimit]]database.poolLimit:: |
| 801 | + |
| 802 | Maximum number of open database connections. If the server needs |
| 803 | more than this number, request processing threads will wait up |
| 804 | to <<database.poolMaxWait, poolMaxWait>> seconds for a |
| 805 | connection to be released before they abort with an exception. |
| 806 | This limit must be several units higher than the total number of |
| 807 | httpd and sshd threads as some request processing code paths may |
| 808 | need multiple connections. |
| 809 | + |
| 810 | Default is 8. |
| 811 | |
| Shawn O. Pearce | f458bf6 | 2010-02-25 09:03:03 -0800 | [diff] [blame] | 812 | [[database.poolMinIdle]]database.poolMinIdle:: |
| Shawn O. Pearce | 07f35177d | 2010-02-23 09:47:10 -0800 | [diff] [blame] | 813 | + |
| 814 | Minimum number of connections to keep idle in the pool. |
| 815 | Default is 4. |
| 816 | |
| Shawn O. Pearce | f458bf6 | 2010-02-25 09:03:03 -0800 | [diff] [blame] | 817 | [[database.poolMaxIdle]]database.poolMaxIdle:: |
| Shawn O. Pearce | 07f35177d | 2010-02-23 09:47:10 -0800 | [diff] [blame] | 818 | + |
| 819 | Maximum number of connections to keep idle in the pool. If there |
| 820 | are more idle connections, connections will be closed instead of |
| 821 | being returned back to the pool. |
| 822 | Default is 4. |
| 823 | |
| 824 | [[database.poolMaxWait]]database.poolMaxWait:: |
| 825 | + |
| 826 | Maximum amount of time a request processing thread will wait to |
| 827 | acquire a database connection from the pool. If no connection is |
| 828 | released within this time period, the processing thread will abort |
| 829 | its current operations and return an error to the client. |
| 830 | Values should use common unit suffixes to express their setting: |
| 831 | + |
| 832 | * ms, milliseconds |
| 833 | * s, sec, second, seconds |
| 834 | * m, min, minute, minutes |
| 835 | * h, hr, hour, hours |
| 836 | |
| 837 | + |
| 838 | If a unit suffix is not specified, `milliseconds` is assumed. |
| 839 | + |
| 840 | Default is `30 seconds`. |
| 841 | |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 842 | [[download]]Section download |
| Nasser Grainawi | b9a5037 | 2010-08-10 07:57:47 -0600 | [diff] [blame] | 843 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 844 | |
| 845 | ---- |
| 846 | [download] |
| 847 | scheme = ssh |
| 848 | scheme = http |
| 849 | scheme = anon_http |
| 850 | scheme = anon_git |
| 851 | scheme = repo_download |
| 852 | ---- |
| 853 | |
| 854 | The download section configures the allowed download methods. |
| 855 | |
| 856 | [[download.scheme]]download.scheme:: |
| 857 | + |
| 858 | Schemes that should be used to download changes. |
| 859 | + |
| 860 | Multiple schemes are supported: |
| 861 | + |
| 862 | * `http` |
| 863 | + |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 864 | Authenticated HTTP download is allowed. |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 865 | + |
| 866 | * `ssh` |
| 867 | + |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 868 | Authenticated SSH download is allowed. |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 869 | + |
| 870 | * `anon_http` |
| 871 | + |
| 872 | Anonymous HTTP download is allowed. |
| 873 | + |
| 874 | * `anon_git` |
| 875 | + |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 876 | Anonymous Git download is allowed. This is not default, it is also |
| 877 | necessary to set <<gerrit.canonicalGitUrl,gerrit.canonicalGitUrl>> |
| 878 | variable. |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 879 | + |
| 880 | * `repo_download` |
| 881 | + |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 882 | Gerrit advertises patch set downloads with the `repo download` |
| 883 | command, assuming that all projects managed by this instance are |
| 884 | generally worked on with the repo multi-repository tool. This is |
| 885 | not default, as not all instances will deploy repo. |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 886 | |
| 887 | + |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 888 | If download.scheme is not specified, SSH, HTTP and Anonymous HTTP |
| 889 | downloads are allowed. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 890 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 891 | [[gerrit]]Section gerrit |
| 892 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | eb7f8ce | 2009-06-01 09:57:15 -0700 | [diff] [blame] | 893 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 894 | [[gerrit.basePath]]gerrit.basePath:: |
| Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame] | 895 | + |
| 896 | Local filesystem directory holding all Git repositories that |
| 897 | Gerrit knows about and can process changes for. A project |
| 898 | entity in Gerrit maps to a local Git repository by creating |
| 899 | the path string `"$\{basePath}/$\{project_name}.git"`. |
| 900 | + |
| 901 | If relative, the path is resolved relative to `'$site_path'`. |
| 902 | |
| Shawn O. Pearce | 897d921 | 2011-06-16 16:59:59 -0700 | [diff] [blame^] | 903 | [[gerrit.allProjects]]gerrit.allProjects:: |
| 904 | + |
| 905 | Name of the permissions-only project defining global server |
| 906 | access controls and settings. These are inherited into every |
| 907 | other project managed by the running server. The name is |
| 908 | relative to `gerrit.basePath`. |
| 909 | + |
| 910 | Defaults to `All-Projects` if not set. |
| 911 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 912 | [[gerrit.canonicalWebUrl]]gerrit.canonicalWebUrl:: |
| Shawn O. Pearce | eb7f8ce | 2009-06-01 09:57:15 -0700 | [diff] [blame] | 913 | + |
| 914 | The default URL for Gerrit to be accessed through. |
| 915 | + |
| 916 | Typically this would be set to "http://review.example.com/" or |
| 917 | "http://example.com/gerrit/" so Gerrit can output links that point |
| 918 | back to itself. |
| 919 | + |
| 920 | Setting this is highly recommended, as its necessary for the upload |
| 921 | code invoked by "git push" or "repo upload" to output hyperlinks |
| 922 | to the newly uploaded changes. |
| 923 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 924 | [[gerrit.canonicalGitUrl]]gerrit.canonicalGitUrl:: |
| Shawn O. Pearce | eb7f8ce | 2009-06-01 09:57:15 -0700 | [diff] [blame] | 925 | + |
| 926 | Optional base URL for repositories available over the anonymous git |
| 927 | protocol. For example, set this to `git://mirror.example.com/base/` |
| 928 | to have Gerrit display patch set download URLs in the UI. Gerrit |
| 929 | automatically appends the project name onto the end of the URL. |
| 930 | + |
| 931 | By default unset, as the git daemon must be configured externally |
| 932 | by the system administrator, and might not even be running on the |
| 933 | same host as Gerrit. |
| 934 | |
| Shawn O. Pearce | 75c76e2 | 2010-08-28 17:26:31 -0700 | [diff] [blame] | 935 | [[gerrit.replicateOnStartup]]gerrit.replicateOnStartup:: |
| 936 | + |
| 937 | If true, replicates to all remotes on startup to ensure they are |
| 938 | in-sync with this server. By default, true. |
| 939 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 940 | [[gitweb]]Section gitweb |
| 941 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 942 | |
| Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 943 | Gerrit can forward requests to either an internally managed gitweb |
| 944 | (which allows Gerrit to enforce some access controls), or to an |
| 945 | externally managed gitweb (where the web server manages access). |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 946 | See also link:config-gitweb.html[Gitweb Integration]. |
| 947 | |
| Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 948 | [[gitweb.cgi]]gitweb.cgi:: |
| 949 | + |
| 950 | Path to the locally installed `gitweb.cgi` executable. This CGI will |
| 951 | be called by Gerrit Code Review when the URL `/gitweb` is accessed. |
| 952 | Project level access controls are enforced prior to calling the CGI. |
| 953 | + |
| 954 | Defaults to `/usr/lib/cgi-bin/gitweb.cgi` if gitweb.url is not set. |
| 955 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 956 | [[gitweb.url]]gitweb.url:: |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 957 | + |
| 958 | Optional URL of an affiliated gitweb service. Defines the |
| 959 | web location where a `gitweb.cgi` is installed to browse |
| Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame] | 960 | gerrit.basePath and the repositories it contains. |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 961 | + |
| 962 | Gerrit appends any necessary query arguments onto the end of this URL. |
| 963 | For example, "?p=$project.git;h=$commit". |
| 964 | |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 965 | [[gitweb.type]]gitweb.type:: |
| 966 | + |
| 967 | Optional type of affiliated gitweb service. This allows using |
| 968 | alternatives to gitweb, such as cgit. |
| 969 | + |
| 970 | Valid values are `gitweb`, `cgit` or `custom`. |
| 971 | |
| 972 | [[gitweb.type]]gitweb.revision:: |
| 973 | + |
| 974 | Optional pattern to use for constructing the gitweb URL when pointing |
| 975 | at a specific commit when `custom` is used above. |
| 976 | + |
| 977 | Valid replacements are `$\{project\}` for the project name in Gerrit |
| 978 | and `$\{commit\}` for the SHA1 hash for the commit. |
| 979 | |
| 980 | [[gitweb.type]]gitweb.project:: |
| 981 | + |
| 982 | Optional pattern to use for constructing the gitweb URL when pointing |
| 983 | at a specific project when `custom` is used above. |
| 984 | + |
| 985 | Valid replacements are `$\{project\}` for the project name in Gerrit. |
| 986 | |
| 987 | [[gitweb.type]]gitweb.branch:: |
| 988 | + |
| 989 | Optional pattern to use for constructing the gitweb URL when pointing |
| 990 | at a specific branch when `custom` is used above. |
| 991 | + |
| 992 | Valid replacements are `$\{project\}` for the project name in Gerrit |
| 993 | and `$\{branch\}` for the name of the branch. |
| 994 | |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 995 | |
| Shane Mc Cormack | 6c2b677 | 2010-01-12 21:56:44 +0000 | [diff] [blame] | 996 | [[hooks]]Section hooks |
| 997 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| 998 | |
| 999 | See also link:config-hooks.html[Hooks]. |
| 1000 | |
| 1001 | [[hooks.path]]hooks.path:: |
| 1002 | + |
| 1003 | Optional path to hooks, if not specified then `'$site_path'/hooks` will be used. |
| 1004 | |
| 1005 | [[hooks.patchsetCreatedHook]]hooks.patchsetCreatedHook:: |
| 1006 | + |
| 1007 | Optional filename for the patchset created hook, if not specified then |
| 1008 | `patchset-created` will be used. |
| 1009 | |
| 1010 | [[hooks.commentAddedHook]]hooks.commentAddedHook:: |
| 1011 | + |
| 1012 | Optional filename for the comment added hook, if not specified then |
| 1013 | `comment-added` will be used. |
| 1014 | |
| 1015 | [[hooks.changeMergedHook]]hooks.changeMergedHook:: |
| 1016 | + |
| 1017 | Optional filename for the change merged hook, if not specified then |
| 1018 | `change-merged` will be used. |
| 1019 | |
| 1020 | [[hooks.changeAbandonedHook]]hooks.changeAbandonedHook:: |
| 1021 | + |
| 1022 | Optional filename for the change abandoned hook, if not specified then |
| 1023 | `change-abandoned` will be used. |
| 1024 | |
| Shawn O. Pearce | 309d8d3 | 2009-11-17 16:03:16 -0800 | [diff] [blame] | 1025 | [[http]]Section http |
| 1026 | ~~~~~~~~~~~~~~~~~~~~ |
| 1027 | |
| 1028 | [[http.proxy]]http.proxy:: |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1029 | + |
| 1030 | URL of the proxy server when making outgoing HTTP |
| 1031 | connections for OpenID login transactions. Syntax |
| 1032 | should be `http://`'hostname'`:`'port'. |
| Shawn O. Pearce | 309d8d3 | 2009-11-17 16:03:16 -0800 | [diff] [blame] | 1033 | |
| 1034 | [[http.proxyUsername]]http.proxyUsername:: |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1035 | + |
| 1036 | Optional username to authenticate to the HTTP proxy with. |
| 1037 | This property is honored only if the username does not |
| 1038 | appear in the http.proxy property above. |
| Shawn O. Pearce | 309d8d3 | 2009-11-17 16:03:16 -0800 | [diff] [blame] | 1039 | |
| 1040 | [[http.proxyPassword]]http.proxyPassword:: |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1041 | + |
| 1042 | Optional password to authenticate to the HTTP proxy with. |
| 1043 | This property is honored only if the password does not |
| 1044 | appear in the http.proxy property above. |
| Shawn O. Pearce | 309d8d3 | 2009-11-17 16:03:16 -0800 | [diff] [blame] | 1045 | |
| 1046 | |
| 1047 | [[httpd]]Section httpd |
| 1048 | ~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1049 | |
| 1050 | The httpd section configures the embedded servlet container. |
| 1051 | |
| 1052 | [[httpd.listenUrl]]httpd.listenUrl:: |
| 1053 | + |
| 1054 | Specifies the URLs the internal HTTP daemon should listen for |
| 1055 | connections on. The special hostname '\*' may be used to listen |
| 1056 | on all local addresses. A context path may optionally be included, |
| 1057 | placing Gerrit Code Review's web address within a subdirectory of |
| 1058 | the server. |
| 1059 | + |
| 1060 | Multiple protocol schemes are supported: |
| 1061 | + |
| 1062 | * `http://`'hostname'`:`'port' |
| 1063 | + |
| 1064 | Plain-text HTTP protocol. If port is not supplied, defaults to 80, |
| 1065 | the standard HTTP port. |
| 1066 | + |
| 1067 | * `https://`'hostname'`:`'port' |
| 1068 | + |
| 1069 | SSL encrypted HTTP protocol. If port is not supplied, defaults to |
| 1070 | 443, the standard HTTPS port. |
| 1071 | + |
| 1072 | Externally facing production sites are encouraged to use a reverse |
| 1073 | proxy configuration and `proxy-https://` (below), rather than using |
| 1074 | the embedded servlet container to implement the SSL processing. |
| 1075 | The proxy server with SSL support is probably easier to configure, |
| 1076 | provides more configuration options to control cipher usage, and |
| 1077 | is likely using natively compiled encryption algorithms, resulting |
| 1078 | in higher throughput. |
| 1079 | + |
| 1080 | * `proxy-http://`'hostname'`:`'port' |
| 1081 | + |
| 1082 | Plain-text HTTP relayed from a reverse proxy. If port is not |
| 1083 | supplied, defaults to 8080. |
| 1084 | + |
| 1085 | Like http, but additional header parsing features are |
| 1086 | enabled to honor X-Forwarded-For, X-Forwarded-Host and |
| 1087 | X-Forwarded-Server. These headers are typically set by Apache's |
| 1088 | link:http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers[mod_proxy]. |
| 1089 | + |
| 1090 | * `proxy-https://`'hostname'`:`'port' |
| 1091 | + |
| 1092 | Plain text HTTP relayed from a reverse proxy that has already |
| 1093 | handled the SSL encryption/decryption. If port is not supplied, |
| 1094 | defaults to 8080. |
| 1095 | + |
| 1096 | Behaves exactly like proxy-http, but also sets the scheme to assume |
| 1097 | 'https://' is the proper URL back to the server. |
| 1098 | |
| 1099 | + |
| 1100 | If multiple values are supplied, the daemon will listen on all |
| 1101 | of them. |
| 1102 | + |
| 1103 | By default, http://*:8080. |
| 1104 | |
| 1105 | [[httpd.reuseAddress]]httpd.reuseAddress:: |
| 1106 | + |
| 1107 | If true, permits the daemon to bind to the port even if the port |
| 1108 | is already in use. If false, the daemon ensures the port is not |
| 1109 | in use before starting. Busy sites may need to set this to true |
| 1110 | to permit fast restarts. |
| 1111 | + |
| 1112 | By default, true. |
| 1113 | |
| 1114 | [[httpd.requestHeaderSize]]httpd.requestHeaderSize:: |
| 1115 | + |
| 1116 | Size, in bytes, of the buffer used to parse the HTTP headers of an |
| 1117 | incoming HTTP request. The entire request headers, including any |
| 1118 | cookies sent by the browser, must fit within this buffer, otherwise |
| 1119 | the server aborts with the response '413 Request Entity Too Large'. |
| 1120 | + |
| 1121 | One buffer of this size is allocated per active connection. |
| 1122 | Allocating a buffer that is too large wastes memory that cannot be |
| 1123 | reclaimed, allocating a buffer that is too small may cause unexpected |
| 1124 | errors caused by very long Referer URLs or large cookie values. |
| 1125 | + |
| 1126 | By default, 16384 (16 K), which is sufficient for most OpenID and |
| 1127 | other web-based single-sign-on integrations. |
| 1128 | |
| 1129 | [[httpd.sslKeyStore]]httpd.sslKeyStore:: |
| 1130 | + |
| 1131 | Path of the Java keystore containing the server's SSL certificate |
| 1132 | and private key. This keystore is required for `https://` in URL. |
| 1133 | + |
| 1134 | To create a self-signed certificate for simple internal usage: |
| 1135 | + |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1136 | ---- |
| 1137 | keytool -keystore keystore -alias jetty -genkey -keyalg RSA |
| 1138 | chmod 600 keystore |
| 1139 | ---- |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1140 | + |
| 1141 | If not absolute, the path is resolved relative to `$site_path`. |
| 1142 | + |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 1143 | By default, `$site_path/etc/keystore`. |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1144 | |
| 1145 | [[httpd.sslKeyPassword]]httpd.sslKeyPassword:: |
| 1146 | + |
| 1147 | Password used to decrypt the private portion of the sslKeyStore. |
| 1148 | Java key stores require a password, even if the administrator |
| 1149 | doesn't want to enable one. |
| 1150 | + |
| 1151 | If set to the empty string the embedded server will prompt for the |
| 1152 | password during startup. |
| 1153 | + |
| 1154 | By default, `gerrit`. |
| 1155 | |
| Shawn O. Pearce | 1766f50 | 2010-01-15 10:49:46 -0800 | [diff] [blame] | 1156 | [[httpd.requestLog]]httpd.requestLog:: |
| 1157 | + |
| 1158 | Enable (or disable) the `'$site_path'/logs/httpd_log` request log. |
| 1159 | If enabled, an NCSA combined log format request log file is written |
| 1160 | out by the internal HTTP daemon. |
| 1161 | + |
| 1162 | By default, true if httpd.listenUrl uses http:// or https://, |
| 1163 | and false if httpd.listenUrl uses proxy-http:// or proxy-https://. |
| 1164 | |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1165 | [[httpd.acceptorThreads]]httpd.acceptorThreads:: |
| 1166 | + |
| 1167 | Number of worker threads dedicated to accepting new incoming TCP |
| 1168 | connections and allocate them connection-specific resources. |
| 1169 | + |
| 1170 | By default, 2, which should be suitable for most high-traffic sites. |
| 1171 | |
| 1172 | [[httpd.minThreads]]httpd.minThreads:: |
| 1173 | + |
| 1174 | Minimum number of spare threads to keep in the worker thread pool. |
| 1175 | This number must be at least 1 larger than httpd.acceptorThreads |
| 1176 | multipled by the number of httpd.listenUrls configured. |
| 1177 | + |
| 1178 | By default, 5, suitable for most lower-volume traffic sites. |
| 1179 | |
| 1180 | [[httpd.maxThreads]]httpd.maxThreads:: |
| 1181 | + |
| 1182 | Maximum number of threads to permit in the worker thread pool. |
| 1183 | + |
| 1184 | By default 25, suitable for most lower-volume traffic sites. |
| 1185 | |
| 1186 | [[httpd.maxQueued]]httpd.maxQueued:: |
| 1187 | + |
| 1188 | Maximum number of client connections which can enter the worker |
| 1189 | thread pool waiting for a worker thread to become available. |
| 1190 | 0 disables the queue and permits infinite number of connections. |
| 1191 | + |
| 1192 | By default 50. |
| 1193 | |
| Shawn O. Pearce | e5452b7 | 2010-01-15 14:32:50 -0800 | [diff] [blame] | 1194 | [[httpd.maxWait]]httpd.maxWait:: |
| 1195 | + |
| 1196 | Maximum amount of time a client will wait to for an available |
| 1197 | thread to handle a project clone, fetch or push request over the |
| 1198 | smart HTTP transport. |
| 1199 | + |
| 1200 | Values should use common unit suffixes to express their setting: |
| 1201 | + |
| 1202 | * s, sec, second, seconds |
| 1203 | * m, min, minute, minutes |
| 1204 | * h, hr, hour, hours |
| 1205 | * d, day, days |
| 1206 | * w, week, weeks (`1 week` is treated as `7 days`) |
| 1207 | * mon, month, months (`1 month` is treated as `30 days`) |
| 1208 | * y, year, years (`1 year` is treated as `365 days`) |
| 1209 | |
| 1210 | + |
| 1211 | If a unit suffix is not specified, `minutes` is assumed. If 0 |
| 1212 | is supplied, the maximum age is infinite and connections will not |
| 1213 | abort until the client disconnects. |
| 1214 | + |
| 1215 | By default, 5 minutes. |
| 1216 | |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1217 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 1218 | [[ldap]]Section ldap |
| 1219 | ~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1220 | |
| 1221 | LDAP integration is only enabled if `auth.type` was set to |
| Sasa Zivkov | eabc897 | 2010-10-04 15:47:08 +0200 | [diff] [blame] | 1222 | `HTTP_LDAP`, `LDAP` or `CLIENT_SSL_CERT_LDAP`. See above for a |
| 1223 | detailed description of the auth.type settings and their |
| 1224 | implications. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1225 | |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1226 | An example LDAP configuration follows, and then discussion of |
| 1227 | the parameters introduced here. Suitable defaults for most |
| 1228 | parameters are automatically guessed based on the type of server |
| 1229 | detected during startup. The guessed defaults support both |
| 1230 | link:http://www.ietf.org/rfc/rfc2307.txt[RFC 2307] and Active |
| 1231 | Directory. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1232 | |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1233 | ---- |
| 1234 | [ldap] |
| 1235 | server = ldap://ldap.example.com |
| 1236 | |
| 1237 | accountBase = ou=people,dc=example,dc=com |
| 1238 | accountPattern = (&(objectClass=person)(uid=${username})) |
| 1239 | accountFullName = displayName |
| 1240 | accountEmailAddress = mail |
| 1241 | |
| 1242 | groupBase = ou=groups,dc=example,dc=com |
| 1243 | groupMemberPattern = (&(objectClass=group)(member=${dn})) |
| 1244 | ---- |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1245 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1246 | [[ldap.server]]ldap.server:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1247 | + |
| 1248 | URL of the organization's LDAP server to query for user information |
| 1249 | and group membership from. Must be of the form `ldap://host` or |
| 1250 | `ldaps://host` to bind with either a plaintext or SSL connection. |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 1251 | + |
| 1252 | If auth.type is `LDAP` this setting should use `ldaps://` to |
| 1253 | ensure the end user's plaintext password is transmitted only over |
| 1254 | an encrypted connection. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1255 | |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1256 | [[ldap.sslVerify]]ldap.sslVerify:: |
| 1257 | + |
| 1258 | If false and ldap.server is an `ldaps://` style URL, Gerrit |
| 1259 | will not verify the server certificate when it connects to |
| 1260 | perform a query. |
| 1261 | + |
| 1262 | By default, true, requiring the certificate to be verified. |
| 1263 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1264 | [[ldap.username]]ldap.username:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1265 | + |
| 1266 | _(Optional)_ Username to bind to the LDAP server with. If not set, |
| 1267 | an anonymous connection to the LDAP server is attempted. |
| 1268 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1269 | [[ldap.password]]ldap.password:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1270 | + |
| 1271 | _(Optional)_ Password for the user identified by `ldap.username`. |
| 1272 | If not set, an anonymous (or passwordless) connection to the LDAP |
| 1273 | server is attempted. |
| 1274 | |
| Ben Wu | 0410a15 | 2010-06-04 16:17:24 +0800 | [diff] [blame] | 1275 | [[ldap.referral]]ldap.referral:: |
| 1276 | + |
| 1277 | _(Optional)_ How an LDAP referral should be handled if it is |
| 1278 | encountered during directory traversal. Set to `follow` to |
| 1279 | automatically follow any referrals, or `ignore` to stop and fail |
| 1280 | with `javax.naming.PartialResultException: Unprocessed Continuation |
| 1281 | Reference(s)` |
| 1282 | + |
| 1283 | By default, `ignore`. |
| 1284 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1285 | [[ldap.accountBase]]ldap.accountBase:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1286 | + |
| 1287 | Root of the tree containing all user accounts. This is typically |
| 1288 | of the form `ou=people,dc=example,dc=com`. |
| 1289 | |
| Shawn O. Pearce | 304ccdb | 2009-08-25 12:25:27 -0700 | [diff] [blame] | 1290 | [[ldap.accountScope]]ldap.accountScope:: |
| 1291 | + |
| 1292 | Scope of the search performed for accounts. Must be one of: |
| 1293 | + |
| 1294 | * `one`: Search only one level below accountBase, but not recursive |
| 1295 | * `sub` or `subtree`: Search recursively below accountBase |
| 1296 | * `base` or `object`: Search exactly accountBase; probably not desired |
| 1297 | |
| 1298 | + |
| 1299 | Default is `subtree` as many directories have several levels. |
| 1300 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1301 | [[ldap.accountPattern]]ldap.accountPattern:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1302 | + |
| 1303 | Query pattern to use when searching for a user account. This may be |
| 1304 | any valid LDAP query expression, including the standard `(&...)` and |
| 1305 | `(|...)` operators. If auth.type is `HTTP_LDAP` then the variable |
| 1306 | `$\{username\}` is replaced with a parameter set to the username |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 1307 | that was supplied by the HTTP server. If auth.type is `LDAP` then |
| 1308 | the variable `$\{username\}` is replaced by the string entered by |
| 1309 | the end user. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1310 | + |
| 1311 | This pattern is used to search the objects contained directly under |
| 1312 | the `ldap.accountBase` tree. A typical setting for this parameter |
| 1313 | is `(uid=$\{username\})` or `(cn=$\{username\})`, but the proper |
| 1314 | setting depends on the LDAP schema used by the directory server. |
| 1315 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1316 | Default is `(uid=$\{username\})` for RFC 2307 servers, |
| 1317 | and `(&(objectClass=user)(sAMAccountName=${username}))` |
| 1318 | for Active Directory. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1319 | |
| Shawn O. Pearce | 37dc1f8 | 2009-08-19 09:49:07 -0700 | [diff] [blame] | 1320 | [[ldap.accountFullName]]ldap.accountFullName:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1321 | + |
| 1322 | _(Optional)_ Name of an attribute on the user account object which |
| 1323 | contains the initial value for the user's full name field in Gerrit. |
| 1324 | Typically this is the `displayName` property in LDAP, but could |
| 1325 | also be `legalName` or `cn`. |
| 1326 | + |
| Shawn O. Pearce | b86ae00 | 2009-09-26 16:54:05 -0700 | [diff] [blame] | 1327 | Attribute values may be concatenated with literal strings, for |
| 1328 | example to join given name and surname together use the pattern |
| 1329 | `$\{givenName\} $\{SN\}`. |
| 1330 | + |
| Shawn O. Pearce | 3ca1dcf | 2009-08-20 08:56:23 -0700 | [diff] [blame] | 1331 | If set, users will be unable to modify their full name field, as |
| 1332 | Gerrit will populate it only from the LDAP data. |
| 1333 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1334 | Default is `displayName` for RFC 2307 servers, |
| 1335 | and `${givenName} ${sn}` for Active Directory. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1336 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1337 | [[ldap.accountEmailAddress]]ldap.accountEmailAddress:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1338 | + |
| 1339 | _(Optional)_ Name of an attribute on the user account object which |
| 1340 | contains the user's Internet email address, as defined by this |
| 1341 | LDAP server. |
| 1342 | + |
| Shawn O. Pearce | b86ae00 | 2009-09-26 16:54:05 -0700 | [diff] [blame] | 1343 | Attribute values may be concatenated with literal strings, |
| 1344 | for example to set the email address to the lowercase form |
| 1345 | of sAMAccountName followed by a constant domain name, use |
| 1346 | `$\{sAMAccountName.toLowerCase\}@example.com`. |
| 1347 | + |
| Shawn O. Pearce | 3ca1dcf | 2009-08-20 08:56:23 -0700 | [diff] [blame] | 1348 | If set, the preferred email address will be prefilled from LDAP, |
| 1349 | but users may still be able to register additional email address, |
| 1350 | and select a different preferred email address. |
| 1351 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1352 | Default is `mail`. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1353 | |
| Shawn O. Pearce | 59e0922 | 2009-08-19 09:04:49 -0700 | [diff] [blame] | 1354 | [[ldap.accountSshUserName]]ldap.accountSshUserName:: |
| 1355 | + |
| 1356 | _(Optional)_ Name of an attribute on the user account object which |
| 1357 | contains the initial value for the user's SSH username field in |
| 1358 | Gerrit. Typically this is the `uid` property in LDAP, but could |
| 1359 | also be `cn`. Administrators should prefer to match the attribute |
| 1360 | corresponding to the user's workstation username, as this is what |
| 1361 | SSH clients will default to. |
| 1362 | + |
| Shawn O. Pearce | b86ae00 | 2009-09-26 16:54:05 -0700 | [diff] [blame] | 1363 | Attribute values may also be forced to lowercase, or to uppercase in |
| 1364 | an expression. For example, `$\{sAMAccountName.toLowerCase\}` will |
| 1365 | force the value of sAMAccountName, if defined, to be all lowercase. |
| 1366 | The suffix `.toUpperCase` can be used for the other direction. |
| 1367 | The suffix `.localPart` can be used to split attribute values of |
| 1368 | the form 'user@example.com' and return only the left hand side, for |
| 1369 | example `$\{userPrincipalName.localPart\}` would provide only 'user'. |
| 1370 | + |
| Shawn O. Pearce | 3ca1dcf | 2009-08-20 08:56:23 -0700 | [diff] [blame] | 1371 | If set, users will be unable to modify their SSH username field, as |
| 1372 | Gerrit will populate it only from the LDAP data. |
| 1373 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1374 | Default is `uid` for RFC 2307 servers, |
| 1375 | and `${sAMAccountName.toLowerCase}` for Active Directory. |
| Shawn O. Pearce | 59e0922 | 2009-08-19 09:04:49 -0700 | [diff] [blame] | 1376 | |
| Shawn O. Pearce | 7d25f78 | 2009-10-30 08:01:03 -0700 | [diff] [blame] | 1377 | [[ldap.accountMemberField]]ldap.accountMemberField:: |
| Anthony | 93de7db | 2009-10-03 10:01:50 -0400 | [diff] [blame] | 1378 | + |
| 1379 | _(Optional)_ Name of an attribute on the user account object which |
| Shawn O. Pearce | 7d25f78 | 2009-10-30 08:01:03 -0700 | [diff] [blame] | 1380 | contains the groups the user is part of. Typically used for Active |
| 1381 | Directory servers. |
| Anthony | 93de7db | 2009-10-03 10:01:50 -0400 | [diff] [blame] | 1382 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1383 | Default is unset for RFC 2307 servers (disabled) |
| 1384 | and `memberOf` for Active Directory. |
| Anthony | 93de7db | 2009-10-03 10:01:50 -0400 | [diff] [blame] | 1385 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1386 | [[ldap.groupBase]]ldap.groupBase:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1387 | + |
| 1388 | Root of the tree containing all group objects. This is typically |
| 1389 | of the form `ou=groups,dc=example,dc=com`. |
| 1390 | |
| Shawn O. Pearce | 304ccdb | 2009-08-25 12:25:27 -0700 | [diff] [blame] | 1391 | [[ldap.groupScope]]ldap.groupScope:: |
| 1392 | + |
| 1393 | Scope of the search performed for group objects. Must be one of: |
| 1394 | + |
| 1395 | * `one`: Search only one level below groupBase, but not recursive |
| 1396 | * `sub` or `subtree`: Search recursively below groupBase |
| 1397 | * `base` or `object`: Search exactly groupBase; probably not desired |
| 1398 | |
| 1399 | + |
| 1400 | Default is `subtree` as many directories have several levels. |
| 1401 | |
| Shawn O. Pearce | 7d25f78 | 2009-10-30 08:01:03 -0700 | [diff] [blame] | 1402 | [[ldap.groupPattern]]ldap.groupPattern:: |
| 1403 | + |
| 1404 | Query pattern used when searching for an LDAP group to connect |
| 1405 | to a Gerrit group. This may be any valid LDAP query expression, |
| 1406 | including the standard `(&...)` and `(|...)` operators. The variable |
| 1407 | `$\{groupname\}` is replaced with the search term supplied by the |
| 1408 | group owner. |
| 1409 | + |
| 1410 | Default is `(cn=$\{groupname\})` for RFC 2307, |
| 1411 | and `(&(objectClass=group)(cn=$\{groupname\}))` for Active Directory. |
| 1412 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1413 | [[ldap.groupMemberPattern]]ldap.groupMemberPattern:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1414 | + |
| 1415 | Query pattern to use when searching for the groups that a user |
| 1416 | account is currently a member of. This may be any valid LDAP query |
| 1417 | expression, including the standard `(&...)` and `(|...)` operators. |
| 1418 | + |
| 1419 | If auth.type is `HTTP_LDAP` then the variable `$\{username\}` is |
| 1420 | replaced with a parameter set to the username that was supplied |
| 1421 | by the HTTP server. Other variables appearing in the pattern, |
| 1422 | such as `$\{fooBarAttribute\}`, are replaced with the value of the |
| 1423 | corresponding attribute (in this case, `fooBarAttribute`) as read |
| 1424 | from the user's account object matched under `ldap.accountBase`. |
| 1425 | Attributes such as `$\{dn\}` or `$\{uidNumber\}` may be useful. |
| 1426 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1427 | Default is `(memberUid=$\{username\})` for RFC 2307, |
| 1428 | and unset (disabled) for Active Directory. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1429 | |
| 1430 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 1431 | [[mimetype]]Section mimetype |
| 1432 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 01cb1190 | 2009-07-15 08:19:01 -0700 | [diff] [blame] | 1433 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1434 | [[mimetype.name.safe]]mimetype.<name>.safe:: |
| Shawn O. Pearce | 01cb1190 | 2009-07-15 08:19:01 -0700 | [diff] [blame] | 1435 | + |
| 1436 | If set to true, files with the MIME type `<name>` will be sent as |
| 1437 | direct downloads to the user's browser, rather than being wrapped up |
| 1438 | inside of zipped archives. The type name may be a complete type |
| 1439 | name, e.g. `image/gif`, a generic media type, e.g. `image/\*`, |
| 1440 | or the wildcard `\*/*` to match all types. |
| 1441 | + |
| 1442 | By default, false for all MIME types. |
| 1443 | |
| 1444 | Common examples: |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1445 | ---- |
| 1446 | [mimetype "image/*"] |
| 1447 | safe = true |
| 1448 | |
| 1449 | [mimetype "application/pdf"] |
| 1450 | safe = true |
| 1451 | |
| 1452 | [mimetype "application/msword"] |
| 1453 | safe = true |
| 1454 | |
| 1455 | [mimetype "application/vnd.ms-excel"] |
| 1456 | safe = true |
| 1457 | ---- |
| Shawn O. Pearce | 01cb1190 | 2009-07-15 08:19:01 -0700 | [diff] [blame] | 1458 | |
| Shawn O. Pearce | 5f11b29 | 2010-08-05 17:57:35 -0700 | [diff] [blame] | 1459 | |
| 1460 | [[pack]]Section pack |
| 1461 | ~~~~~~~~~~~~~~~~~~~~ |
| 1462 | Global settings controlling how Gerrit Code Review creates pack |
| 1463 | streams for Git clients running clone, fetch, or pull. Most of these |
| 1464 | variables are per-client request, and thus should be carefully set |
| 1465 | given the expected concurrent request load and available CPU and |
| 1466 | memory resources. |
| 1467 | |
| 1468 | [[pack.deltacompression]]pack.deltacompression:: |
| 1469 | + |
| 1470 | If true, delta compression between objects is enabled. This may |
| 1471 | result in a smaller overall transfer for the client, but requires |
| 1472 | more server memory and CPU time. |
| 1473 | + |
| 1474 | False (off) by default, matching Gerrit Code Review 2.1.4. |
| 1475 | |
| 1476 | [[pack.threads]]pack.threads:: |
| 1477 | + |
| 1478 | Maximum number of threads to use for delta compression (if enabled). |
| 1479 | This is per-client request. If set to 0 then the number of CPUs is |
| 1480 | auto-detected and one thread per CPU is used, per client request. |
| 1481 | + |
| 1482 | By default, 1. |
| 1483 | |
| 1484 | |
| lincoln | 2be1160 | 2010-07-05 10:53:25 -0300 | [diff] [blame] | 1485 | [[receive]]Section receive |
| 1486 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1487 | Sets the group of users allowed to execute 'receive-pack' on the |
| 1488 | server, 'receive-pack' is what runs on the server during a user's |
| 1489 | push or repo upload command. |
| 1490 | |
| 1491 | ---- |
| 1492 | [receive] |
| 1493 | allowGroup = GROUP_ALLOWED_TO_EXECUTE |
| 1494 | allowGroup = YET_ANOTHER_GROUP_ALLOWED_TO_EXECUTE |
| 1495 | ---- |
| 1496 | |
| 1497 | [[receive.allowGroup]]receive.allowGroup:: |
| 1498 | + |
| 1499 | Name of the groups of users that are allowed to execute |
| 1500 | 'receive-pack' on the server. One or more groups can be set. |
| 1501 | + |
| 1502 | If no groups are added, any user will be allowed to execute |
| 1503 | 'receive-pack' on the server. |
| 1504 | |
| 1505 | |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 1506 | [[repository]]Section repository |
| 1507 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1508 | Repositories in this sense are the same as projects. |
| 1509 | |
| Shawn O. Pearce | 897d921 | 2011-06-16 16:59:59 -0700 | [diff] [blame^] | 1510 | In the following example configuration `Registered Users` is set |
| 1511 | to be the default owner of new projects. |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 1512 | |
| 1513 | ---- |
| 1514 | [repository "*"] |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 1515 | ownerGroup = Registered Users |
| 1516 | ---- |
| 1517 | |
| 1518 | [NOTE] |
| 1519 | Currently only the repository name `*` is supported. |
| 1520 | This is a wildcard designating all repositories. |
| 1521 | |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 1522 | [[repository.name.ownerGroup]]repository.<name>.ownerGroup:: |
| 1523 | + |
| 1524 | A name of a group which exists in the database. Zero, one or many |
| 1525 | groups are allowed. Each on its own line. Groups which don't exist |
| 1526 | in the database are ignored. |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 1527 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 1528 | [[sendemail]]Section sendemail |
| 1529 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 1530 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1531 | [[sendemail.enable]]sendemail.enable:: |
| Shawn O. Pearce | 2e4573b | 2009-06-02 09:09:50 -0700 | [diff] [blame] | 1532 | + |
| 1533 | If false Gerrit will not send email messages, for any reason, |
| 1534 | and all other properties of section sendemail are ignored. |
| 1535 | + |
| 1536 | By default, true, allowing notifications to be sent. |
| 1537 | |
| Shawn O. Pearce | 5c31bd7 | 2009-09-10 18:13:33 -0700 | [diff] [blame] | 1538 | [[sendemail.from]]sendemail.from:: |
| 1539 | + |
| 1540 | Designates what name and address Gerrit will place in the From |
| 1541 | field of any generated email messages. The supported values are: |
| 1542 | + |
| 1543 | * `USER` |
| 1544 | + |
| 1545 | Gerrit will set the From header to use the current user's |
| 1546 | Full Name and Preferred Email. This may cause messsages to be |
| 1547 | classified as spam if the user's domain has SPF or DKIM enabled |
| 1548 | and <<sendemail.smtpServer,sendemail.smtpServer>> is not a trusted |
| 1549 | relay for that domain. |
| 1550 | + |
| 1551 | * `MIXED` |
| 1552 | + |
| 1553 | Shorthand for `$\{user\} (Code Review) <review@example.com>` where |
| 1554 | `review@example.com` is the same as <<user.email,user.email>>. |
| 1555 | See below for a description of how the replacement is handled. |
| 1556 | + |
| 1557 | * `SERVER` |
| 1558 | + |
| 1559 | Gerrit will set the From header to the same name and address |
| 1560 | it records in any commits Gerrit creates. This is set by |
| 1561 | <<user.name,user.name>> and <<user.email,user.email>>, or guessed |
| 1562 | from the local operating system. |
| 1563 | + |
| 1564 | * 'Code Review' `<`'review'`@`'example.com'`>` |
| 1565 | + |
| 1566 | If set to a name and email address in brackets, Gerrit will use |
| 1567 | this name and email address for any messages, overriding the name |
| 1568 | that may have been selected for commits by user.name and user.email. |
| 1569 | Optionally, the name portion may contain the placeholder `$\{user\}`, |
| 1570 | which is replaced by the Full Name of the current user. |
| 1571 | |
| 1572 | + |
| 1573 | By default, MIXED. |
| 1574 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1575 | [[sendemail.smtpServer]]sendemail.smtpServer:: |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 1576 | + |
| 1577 | Hostname (or IP address) of a SMTP server that will relay |
| 1578 | messages generated by Gerrit to end users. |
| 1579 | + |
| 1580 | By default, 127.0.0.1 (aka localhost). |
| 1581 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1582 | [[sendemail.smtpServerPort]]sendemail.smtpServerPort:: |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 1583 | + |
| 1584 | Port number of the SMTP server in sendemail.smtpserver. |
| 1585 | + |
| Shawn O. Pearce | 6e9a83f | 2009-11-02 10:30:48 -0800 | [diff] [blame] | 1586 | By default, 25, or 465 if smtpEncryption is 'ssl'. |
| 1587 | |
| 1588 | [[sendemail.smtpEncryption]]sendemail.smtpEncryption:: |
| 1589 | + |
| 1590 | Specify the encryption to use, either 'ssl' or 'tls'. |
| 1591 | + |
| 1592 | By default, 'none', indicating no encryption is used. |
| 1593 | |
| 1594 | [[sendemail.sslVerify]]sendemail.sslVerify:: |
| 1595 | + |
| 1596 | If false and sendemail.smtpEncryption is 'ssl' or 'tls', Gerrit |
| 1597 | will not verify the server certificate when it connects to send |
| 1598 | an email message. |
| 1599 | + |
| 1600 | By default, true, requiring the certificate to be verified. |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 1601 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1602 | [[sendemail.smtpUser]]sendemail.smtpUser:: |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 1603 | + |
| 1604 | User name to authenticate with, if required for relay. |
| 1605 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1606 | [[sendemail.smtpPass]]sendemail.smtpPass:: |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 1607 | + |
| 1608 | Password for the account named by sendemail.smtpUser. |
| 1609 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1610 | [[sendemail.allowrcpt]]sendemail.allowrcpt:: |
| Shawn O. Pearce | 219a8ee | 2009-06-01 18:13:57 -0700 | [diff] [blame] | 1611 | + |
| 1612 | If present, each value adds one entry to the whitelist of email |
| 1613 | addresses that Gerrit can send email to. If set to a complete |
| 1614 | email address, that one address is added to the white list. |
| 1615 | If set to a domain name, any address at that domain can receive |
| 1616 | email from Gerrit. |
| 1617 | + |
| 1618 | By default, unset, permitting delivery to any email address. |
| 1619 | |
| Alex Blewitt | 9cca740 | 2011-02-11 01:39:30 +0000 | [diff] [blame] | 1620 | [[sendemail.importance]]sendemail.importance:: |
| 1621 | + |
| 1622 | If present, emails sent from Gerrit will have the given level |
| 1623 | of importance. Valid values include 'high' and 'low', which |
| 1624 | email clients will render in different ways. |
| 1625 | + |
| 1626 | By default, unset, so no Importance header is generated. |
| 1627 | |
| 1628 | [[sendemail.expiryDays]]sendemail.expiryDays:: |
| 1629 | + |
| 1630 | If present, emails sent from Gerrit will expire after the given |
| 1631 | number of days. This will add the Expiry-Date header and |
| 1632 | email clients may expire or expunge mails whose Expiry-Date |
| 1633 | header is in the past. This should be a positive non-zero |
| 1634 | number indicating how many days in the future the mails |
| 1635 | should expire. |
| 1636 | + |
| 1637 | By default, unset, so no Expiry-Date header is generated. |
| 1638 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 1639 | [[sshd]] Section sshd |
| Shawn O. Pearce | a758fef | 2009-08-19 08:29:32 -0700 | [diff] [blame] | 1640 | ~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 9410f2c | 2009-05-14 10:26:47 -0700 | [diff] [blame] | 1641 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1642 | [[sshd.listenAddress]]sshd.listenAddress:: |
| Shawn O. Pearce | 1d3cb444 | 2009-05-30 14:03:31 -0700 | [diff] [blame] | 1643 | + |
| 1644 | Specifies the local addresses the internal SSHD should listen |
| 1645 | for connections on. The following forms may be used to specify |
| 1646 | an address. In any form, `:'port'` may be omitted to use the |
| 1647 | default of 29418. |
| 1648 | + |
| 1649 | * 'hostname':'port' (for example `review.example.com:29418`) |
| 1650 | * 'IPv4':'port' (for example `10.0.0.1:29418`) |
| 1651 | * ['IPv6']:'port' (for example `[ff02::1]:29418`) |
| 1652 | * \*:'port' (for example `*:29418`) |
| 1653 | |
| 1654 | + |
| 1655 | If multiple values are supplied, the daemon will listen on all |
| 1656 | of them. |
| 1657 | + |
| 1658 | By default, *:29418. |
| 1659 | |
| Shawn O. Pearce | 149238a | 2009-09-10 12:25:20 -0700 | [diff] [blame] | 1660 | [[sshd.reuseAddress]]sshd.reuseAddress:: |
| Shawn O. Pearce | 9410f2c | 2009-05-14 10:26:47 -0700 | [diff] [blame] | 1661 | + |
| 1662 | If true, permits the daemon to bind to the port even if the port |
| 1663 | is already in use. If false, the daemon ensures the port is not |
| 1664 | in use before starting. Busy sites may need to set this to true |
| 1665 | to permit fast restarts. |
| 1666 | + |
| 1667 | By default, true. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 1668 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1669 | [[sshd.tcpKeepAlive]]sshd.tcpKeepAlive:: |
| Shawn O. Pearce | fc9081f | 2009-05-14 10:26:59 -0700 | [diff] [blame] | 1670 | + |
| 1671 | If true, enables TCP keepalive messages to the other side, so |
| 1672 | the daemon can terminate connections if the peer disappears. |
| 1673 | + |
| 1674 | By default, true. |
| 1675 | |
| Shawn O. Pearce | 1a4580b | 2009-11-19 17:37:10 -0800 | [diff] [blame] | 1676 | [[sshd.threads]]sshd.threads:: |
| 1677 | + |
| 1678 | Number of threads to use when executing SSH command requests. |
| 1679 | If additional requests are received while all threads are busy they |
| 1680 | are queued and serviced in a first-come-first-serve order. |
| 1681 | + |
| 1682 | By default, 1.5x the number of CPUs available to the JVM. |
| 1683 | |
| Nico Sallembien | fc53f7f | 2010-05-18 16:40:10 -0700 | [diff] [blame] | 1684 | [[sshd.batchThreads]]sshd.batchThreads:: |
| 1685 | + |
| 1686 | Number of threads to allocate for SSH command requests from |
| 1687 | non-interactive users. If equals to 0, then all non-interactive |
| 1688 | requests are executed in the same queue as interactive requests. |
| 1689 | + |
| 1690 | Any other value will remove the number of threads from the queue |
| 1691 | allocated to interactive users, and create a separate thread pool |
| 1692 | of the requested size, which will be used to run commands from |
| 1693 | non-interactive users. |
| 1694 | + |
| 1695 | If the number of threads requested for non-interactive users is larger |
| 1696 | than the total number of threads allocated in sshd.threads, then the |
| 1697 | value of sshd.threads is increased to accomodate the requested value. |
| 1698 | + |
| 1699 | By default, 0. |
| 1700 | |
| Kenny Root | 15ac1b8 | 2010-02-24 00:29:20 -0800 | [diff] [blame] | 1701 | [[sshd.streamThreads]]sshd.streamThreads:: |
| 1702 | + |
| 1703 | Number of threads to use when formatting events to asynchronous |
| 1704 | streaming clients. Event formatting is multiplexed onto this thread |
| 1705 | pool by a simple FIFO scheduling system. |
| 1706 | + |
| 1707 | By default, 1 plus the number of CPUs available to the JVM. |
| 1708 | |
| Shawn O. Pearce | d629655 | 2011-05-15 13:56:30 -0700 | [diff] [blame] | 1709 | [sshd.commandStartThreads]]sshd.commandStartThreads:: |
| 1710 | + |
| 1711 | Number of threads used to parse a command line submitted by a client |
| 1712 | over SSH for execution, create the internal data structures used by |
| 1713 | that command, and schedule it for execution on another thread. |
| 1714 | + |
| 1715 | By default, 2. |
| 1716 | |
| Shawn O. Pearce | 8a0bf36 | 2010-11-05 17:49:41 -0700 | [diff] [blame] | 1717 | [[sshd.maxAuthTries]]sshd.maxAuthTries:: |
| 1718 | + |
| 1719 | Maximum number of authentication attempts before the server |
| 1720 | disconnects the client. Each public key that a client has loaded |
| 1721 | into its local agent counts as one auth request. Users can work |
| 1722 | around the server's limit by loading less keys into their agent, |
| 1723 | or selecting a specific key in their `~/.ssh/config` file with |
| 1724 | the `IdentityFile` option. |
| 1725 | + |
| 1726 | By default, 6. |
| 1727 | |
| 1728 | [[sshd.loginGraceTime]]sshd.loginGraceTime:: |
| 1729 | + |
| 1730 | Time in seconds that a client has to authenticate before the server |
| 1731 | automatically terminates their connection. Values should use common |
| 1732 | unit suffixes to express their setting: |
| 1733 | + |
| 1734 | * s, sec, second, seconds |
| 1735 | * m, min, minute, minutes |
| 1736 | * h, hr, hour, hours |
| 1737 | * d, day, days |
| 1738 | |
| 1739 | + |
| 1740 | By default, 2 minutes. |
| 1741 | |
| 1742 | [[sshd.maxConnectionsPerUser]]sshd.maxConnectionsPerUser:: |
| 1743 | + |
| 1744 | Maximum number of concurrent SSH sessions that a user account |
| 1745 | may open at one time. This is the number of distinct SSH logins |
| 1746 | the each user may have active at one time, and is not related to |
| 1747 | the number of commands a user may issue over a single connection. |
| 1748 | If set to 0, there is no limit. |
| 1749 | + |
| 1750 | By default, 64. |
| 1751 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1752 | [[sshd.cipher]]sshd.cipher:: |
| Shawn O. Pearce | 0bf2f52 | 2009-05-14 11:02:03 -0700 | [diff] [blame] | 1753 | + |
| 1754 | Available ciphers. To permit multiple ciphers, specify multiple |
| 1755 | `sshd.cipher` keys in the configuration file, one cipher name |
| 1756 | per key. Cipher names starting with `+` are enabled in addition |
| 1757 | to the default ciphers, cipher names starting with `-` are removed |
| 1758 | from the default cipher set. |
| 1759 | + |
| 1760 | Supported ciphers: aes128-cbc, aes128-cbc, aes256-cbc, blowfish-cbc, |
| 1761 | 3des-cbc, none. |
| 1762 | + |
| 1763 | By default, all supported ciphers except `none` are available. |
| 1764 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1765 | [[sshd.mac]]sshd.mac:: |
| Shawn O. Pearce | 0bf2f52 | 2009-05-14 11:02:03 -0700 | [diff] [blame] | 1766 | + |
| 1767 | Available MAC (message authentication code) algorithms. To permit |
| 1768 | multiple algorithms, specify multiple `sshd.mac` keys in the |
| 1769 | configuration file, one MAC per key. MAC names starting with `+` |
| 1770 | are enabled in addition to the default MACs, MAC names starting with |
| 1771 | `-` are removed from the default MACs. |
| 1772 | + |
| 1773 | Supported MACs: hmac-md5, hmac-md5-96, hmac-sha1, hmac-sha1-96. |
| 1774 | + |
| 1775 | By default, all supported MACs are available. |
| 1776 | |
| Shawn O. Pearce | 07bd6fb | 2011-04-29 19:15:47 -0700 | [diff] [blame] | 1777 | [[suggest]] Section suggest |
| 1778 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1779 | |
| 1780 | [[suggest.accounts]]:: |
| 1781 | + |
| 1782 | If `ALL`, all matching user accounts will be offered as |
| 1783 | completion suggestions when adding a reviewer to a change, |
| 1784 | or a user to a group. |
| 1785 | + |
| 1786 | If `SAME_GROUP`, only users who are also members of a group the |
| 1787 | current user is a member of will be offered. |
| 1788 | + |
| Edwin Kempin | 4248881 | 2011-05-20 03:11:43 +0200 | [diff] [blame] | 1789 | If `VISIBLE_GROUP`, only users who are members of at least one group |
| 1790 | that is visible to the current user will be offered. |
| 1791 | + |
| Shawn O. Pearce | 07bd6fb | 2011-04-29 19:15:47 -0700 | [diff] [blame] | 1792 | If `OFF`, no account suggestions are given. |
| 1793 | + |
| 1794 | Default is `ALL`. |
| 1795 | |
| Shawn O. Pearce | 2ba3ab4 | 2010-02-25 12:10:10 -0800 | [diff] [blame] | 1796 | [[theme]] Section theme |
| 1797 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| 1798 | |
| 1799 | [[theme.backgroundColor]]theme.backgroundColor:: |
| 1800 | + |
| 1801 | Background color for the page, and major data tables like the all |
| 1802 | open changes table or the account dashboard. The value must be a |
| 1803 | valid HTML hex color code, or standard color name. |
| 1804 | + |
| Shawn O. Pearce | 9ca8ae3 | 2011-05-24 08:28:40 -0700 | [diff] [blame] | 1805 | By default `FCFEEF` (a creme color) for signed-out theme and white |
| 1806 | (`FFFFFF`) for signed-in theme. |
| Shawn O. Pearce | 2ba3ab4 | 2010-02-25 12:10:10 -0800 | [diff] [blame] | 1807 | |
| 1808 | [[theme.topMenuColor]]theme.topMenuColor:: |
| 1809 | + |
| 1810 | This is the color of the main menu bar at the top of the page. |
| 1811 | The value must be a valid HTML hex color code, or standard color |
| 1812 | name. The value defaults to <<theme.trimColor,trimColor>>. |
| 1813 | |
| 1814 | [[theme.textColor]]theme.textColor:: |
| 1815 | + |
| 1816 | Text color for the page, and major data tables like the all |
| 1817 | open changes table or the account dashboard. The value must be a |
| 1818 | valid HTML hex color code, or standard color name. |
| 1819 | + |
| 1820 | By default black, `000000`. |
| 1821 | |
| 1822 | [[theme.trimColor]]theme.trimColor:: |
| 1823 | + |
| 1824 | Primary color used as a background color behind text. This is |
| 1825 | the color of the main menu bar at the top, of table headers, |
| 1826 | and of major UI areas that we want to offset from other portions |
| 1827 | of the page. The value must be a valid HTML hex color code, or |
| 1828 | standard color name. |
| 1829 | + |
| 1830 | By default a shade of green, `D4E9A9`. |
| 1831 | |
| 1832 | [[theme.selectionColor]]theme.selectionColor:: |
| 1833 | + |
| 1834 | Background color used within a trimColor area to denote the currently |
| 1835 | selected tab, or the background color used in a table to denote the |
| 1836 | currently selected row. The value must be a valid HTML hex color |
| 1837 | code, or standard color name. |
| 1838 | + |
| 1839 | By default a shade of yellow, `FFFFCC`. |
| 1840 | |
| Shawn O. Pearce | a83bb1c | 2011-05-20 08:46:48 -0700 | [diff] [blame] | 1841 | A different theme may be used for signed-in vs. signed-out user status |
| 1842 | by using the "signed-in" and "signed-out" theme sections. Variables |
| 1843 | not specified in a section are inherited from the default theme. |
| 1844 | |
| 1845 | ---- |
| 1846 | [theme] |
| 1847 | backgroundColor = FFFFFF |
| 1848 | [theme "signed-in"] |
| 1849 | backgroundColor = C0C0C0 |
| 1850 | [theme "signed-out"] |
| 1851 | backgroundColor = 00FFFF |
| 1852 | ---- |
| 1853 | |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 1854 | [[trackingid]] Section trackingid |
| Shawn O. Pearce | 91763a0 | 2010-06-16 15:39:33 -0700 | [diff] [blame] | 1855 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 1856 | |
| Shawn O. Pearce | e800b1e | 2010-06-16 17:33:43 -0700 | [diff] [blame] | 1857 | Tagged footer lines containing references to external |
| 1858 | tracking systems, parsed out of the commit message and |
| 1859 | saved in Gerrit's database. After making changes to |
| 1860 | this section, existing changes must be reindexed with the |
| 1861 | link:pgm-ScanTrackingIds.html[ScanTrackingIds] program. |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 1862 | |
| Shawn O. Pearce | 91763a0 | 2010-06-16 15:39:33 -0700 | [diff] [blame] | 1863 | The tracking ids are serachable using tr:<tracking id> or |
| 1864 | bug:<tracking id>. |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 1865 | |
| 1866 | ---- |
| 1867 | [trackingid "jira-bug"] |
| 1868 | footer = Bugfix: |
| 1869 | match = JRA\\d{2,8} |
| 1870 | system = JIRA |
| 1871 | |
| 1872 | [trackingid "jira-feature"] |
| 1873 | footer = Feature |
| 1874 | match = JRA(\\d{2,8}) |
| 1875 | system = JIRA |
| 1876 | ---- |
| 1877 | |
| 1878 | [[trackingid.name.footer]]trackingid.<name>.footer:: |
| 1879 | + |
| 1880 | A prefix tag that identify the footer line to parse for tracking ids. |
| 1881 | Several trakingid entries can have the same footer tag. |
| 1882 | (the trailing ":" is optional) |
| 1883 | |
| 1884 | [[trackingid.name.match]]trackingid.<name>.match:: |
| 1885 | + |
| Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 1886 | A link:http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html[standard |
| 1887 | Java regular expression (java.util.regex)] used to match the |
| 1888 | external tracking id part of the footer line. The match can |
| 1889 | result in several entries in the DB. If grouping is used in the |
| 1890 | regex the first group will be interpreted as the tracking id. |
| 1891 | Tracking ids > 20 char will be ignored. |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 1892 | + |
| 1893 | The configuration file parser eats one level of backslashes, so the |
| 1894 | character class `\s` requires `\\s` in the configuration file. The |
| 1895 | parser also terminates the line at the first `#`, so a match |
| 1896 | expression containing # must be wrapped in double quotes. |
| 1897 | |
| 1898 | [[trackingid.name.system]]trackingid.<name>.system:: |
| 1899 | + |
| 1900 | The name of the external tracking system(max 10 char). |
| 1901 | It is possible to have several trackingid entries for the same |
| 1902 | tracking system. |
| 1903 | |
| Shawn O. Pearce | 6e4dfdd | 2010-05-12 17:26:08 -0700 | [diff] [blame] | 1904 | [[transfer]] Section transfer |
| 1905 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1906 | |
| 1907 | [[transfer.timeout]]transfer.timeout:: |
| 1908 | + |
| 1909 | Number of seconds to wait for a single network read or write |
| 1910 | to complete before giving up and declaring the remote side is |
| 1911 | not responding. If 0, there is no timeout, and this server will |
| 1912 | wait indefinitely for a transfer to finish. |
| 1913 | + |
| 1914 | A timeout should be large enough to mostly transfer the objects to |
| 1915 | the other side. 1 second may be too small for larger projects, |
| 1916 | especially over a WAN link, while 10-30 seconds is a much more |
| 1917 | reasonable timeout value. |
| 1918 | + |
| 1919 | Defaults to 0 seconds, wait indefinitely. |
| 1920 | |
| lincoln | 2be1160 | 2010-07-05 10:53:25 -0300 | [diff] [blame] | 1921 | |
| 1922 | [[upload]]Section upload |
| 1923 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1924 | Sets the group of users allowed to execute 'upload-pack' on the |
| 1925 | server, 'upload-pack' is what runs on the server during a user's |
| 1926 | fetch, clone or repo sync command. |
| 1927 | |
| 1928 | ---- |
| 1929 | [upload] |
| 1930 | allowGroup = GROUP_ALLOWED_TO_EXECUTE |
| 1931 | allowGroup = YET_ANOTHER_GROUP_ALLOWED_TO_EXECUTE |
| 1932 | ---- |
| 1933 | |
| 1934 | [[upload.allowGroup]]upload.allowGroup:: |
| 1935 | + |
| 1936 | Name of the groups of users that are allowed to execute 'upload-pack' |
| 1937 | on the server. One or more groups can be set. |
| 1938 | + |
| 1939 | If no groups are added, any user will be allowed to execute |
| 1940 | 'upload-pack' on the server. |
| 1941 | |
| 1942 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 1943 | [[user]] Section user |
| Shawn O. Pearce | a758fef | 2009-08-19 08:29:32 -0700 | [diff] [blame] | 1944 | ~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 0a35191 | 2009-06-01 08:14:46 -0700 | [diff] [blame] | 1945 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1946 | [[user.name]]user.name:: |
| Shawn O. Pearce | 0a35191 | 2009-06-01 08:14:46 -0700 | [diff] [blame] | 1947 | + |
| 1948 | Name that Gerrit calls itself in Git when it creates a new Git |
| 1949 | commit, such as a merge during change submission. |
| 1950 | + |
| 1951 | By default this is "Gerrit Code Review". |
| 1952 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1953 | [[user.email]]user.email:: |
| Shawn O. Pearce | 0a35191 | 2009-06-01 08:14:46 -0700 | [diff] [blame] | 1954 | + |
| 1955 | Email address that Gerrit refers to itself as when it creates a |
| 1956 | new Git commit, such as a merge commit during change submission. |
| 1957 | + |
| 1958 | If not set, Gerrit generates this as "gerrit@`hostname`", where |
| 1959 | `hostname` is the hostname of the system Gerrit is running on. |
| 1960 | + |
| 1961 | By default, not set, generating the value at startup. |
| 1962 | |
| Shawn O. Pearce | 0bf2f52 | 2009-05-14 11:02:03 -0700 | [diff] [blame] | 1963 | |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 1964 | File `etc/secure.config` |
| 1965 | ------------------------- |
| 1966 | The optional file `'$site_path'/etc/secure.config` overrides (or |
| 1967 | supplements) the settings supplied by `'$site_path'/etc/gerrit.config`. |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 1968 | The file should be readable only by the daemon process and can be |
| 1969 | used to contain private configuration entries that wouldn't normally |
| 1970 | be exposed to everyone. |
| 1971 | |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 1972 | Sample `etc/secure.config`: |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 1973 | ---- |
| 1974 | [database] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1975 | username = webuser |
| 1976 | password = s3kr3t |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 1977 | |
| 1978 | [ldap] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1979 | password = l3tm3srch |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 1980 | |
| 1981 | [httpd] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1982 | sslKeyPassword = g3rr1t |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 1983 | |
| 1984 | [sendemail] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1985 | smtpPass = sp@m |
| Shawn O. Pearce | 7929d87 | 2011-05-15 13:33:15 -0700 | [diff] [blame] | 1986 | |
| 1987 | [remote "bar"] |
| 1988 | password = s3kr3t |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 1989 | ---- |
| 1990 | |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 1991 | File `etc/replication.config` |
| 1992 | ----------------------------- |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 1993 | |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 1994 | The optional file `'$site_path'/etc/replication.config` controls how |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 1995 | Gerrit automatically replicates changes it makes to any of the Git |
| 1996 | repositories under its control. |
| 1997 | |
| 1998 | * link:config-replication.html[Git Replication/Mirroring] |
| 1999 | |
| 2000 | Database system_config |
| 2001 | ---------------------- |
| 2002 | |
| 2003 | Several columns in the `system_config` table within the metadata |
| 2004 | database may be set to control how Gerrit behaves. |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2005 | |
| 2006 | [NOTE] |
| 2007 | The contents of the `system_config` table are cached at startup |
| 2008 | by Gerrit. If you modify any columns in this table, Gerrit needs |
| 2009 | to be restarted before it will use the new values. |
| 2010 | |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 2011 | Configurable Parameters |
| 2012 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2013 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2014 | site_path:: |
| 2015 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2016 | Local filesystem directory holding the site customization assets. |
| 2017 | Placing this directory under version control and/or backup is a |
| 2018 | good idea. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2019 | + |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 2020 | Files in this directory provide additional configuration. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2021 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2022 | Other files support site customization. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2023 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2024 | * link:config-headerfooter.html[Site Header/Footer] |
| Shawn O. Pearce | e7ec053 | 2009-05-08 09:42:54 -0700 | [diff] [blame] | 2025 | * link:config-replication.html[Git Replication/Mirroring] |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2026 | |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 2027 | Not User Serviceable |
| 2028 | ~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2029 | |
| 2030 | These fields generally shouldn't be modified. |
| 2031 | |
| Shawn O. Pearce | c7f8801 | 2009-08-19 08:32:51 -0700 | [diff] [blame] | 2032 | register_email_private_key:: |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2033 | + |
| Shawn O. Pearce | c7f8801 | 2009-08-19 08:32:51 -0700 | [diff] [blame] | 2034 | Private key used to sign the links emailed to users when they |
| 2035 | request to register a new email address on their user account. |
| 2036 | When the link is activated, the private key authenticates the link |
| 2037 | was created and sent by this Gerrit server, proving that the user |
| 2038 | can receive email at the address they are registering. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2039 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2040 | This column is automatically generated when the database is |
| 2041 | initialized. Changing it to a new value would cause all current |
| Shawn O. Pearce | c7f8801 | 2009-08-19 08:32:51 -0700 | [diff] [blame] | 2042 | links to be invalidated. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2043 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2044 | Changing it is not recommended. |
| 2045 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2046 | admin_group_id:: |
| 2047 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2048 | Unique identity of the group with full privileges. Any user who |
| 2049 | is a member of this group may manage any other group, any project, |
| 2050 | and other system settings over the web. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2051 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2052 | This is initialized by Gerrit to be the "Administrators" group. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2053 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2054 | Changing it is not recommended. |
| 2055 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2056 | anonymous_group_id:: |
| 2057 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2058 | Unique identity of the group for anonymous (not authenticated) users. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2059 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2060 | All users are a member of this group, whether or not they are |
| 2061 | actually signed in to Gerrit. Any access rights assigned to |
| 2062 | this group are inherited by all users. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2063 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2064 | This is initialized by Gerrit to be the "Anonymous Users" group. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2065 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2066 | Changing it is not recommended. |
| 2067 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2068 | registered_group_id:: |
| 2069 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2070 | Unique identity of the group for all authenticated users. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2071 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2072 | All signed-in users are a member of this group. Any access rights |
| 2073 | assigned to this group are inherited by all users once they have |
| 2074 | authenticated to Gerrit. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2075 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2076 | Since account registration is open and fairly easy to obtain, |
| 2077 | moving from the "Anonymous Users" group to this group is not |
| 2078 | very difficult. Caution should be taken when assigning any |
| 2079 | permissions to this group. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2080 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2081 | This is initialized by Gerrit to be the "Registered Users" group. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2082 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2083 | Changing it is not recommended. |
| 2084 | |
| Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 2085 | GERRIT |
| 2086 | ------ |
| 2087 | Part of link:index.html[Gerrit Code Review] |