| 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 |
| Brandon Casey | 4a21add | 2011-07-05 13:14:18 -0500 | [diff] [blame] | 12 | by Gerrit. If you modify any properties in this file, Gerrit needs |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 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 | |
| Dave Borowitz | 45baa89 | 2012-02-23 16:43:05 -0800 | [diff] [blame] | 24 | [[accounts]]Section accounts |
| 25 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 26 | |
| Matthias Sohn | f336066 | 2012-04-05 15:42:52 +0200 | [diff] [blame] | 27 | [[accounts.visibility]]accounts.visibility:: |
| Dave Borowitz | 45baa89 | 2012-02-23 16:43:05 -0800 | [diff] [blame] | 28 | + |
| 29 | Controls visibility of other users' dashboard pages and |
| 30 | completion suggestions to web users. |
| 31 | + |
| 32 | If `ALL`, all users are visible to all other users, even |
| 33 | anonymous users. |
| 34 | + |
| 35 | If `SAME_GROUP`, only users who are also members of a group the |
| 36 | current user is a member of are visible. |
| 37 | + |
| 38 | If `VISIBLE_GROUP`, only users who are members of at least one group |
| 39 | that is visible to the current user are visible. |
| 40 | + |
| 41 | If `NONE`, no users other than the current user are visible. |
| 42 | + |
| 43 | Default is `ALL`. |
| 44 | |
| Edwin Kempin | 49cb3e1 | 2011-06-29 14:35:14 +0200 | [diff] [blame] | 45 | [[addreviewer]]Section addreviewer |
| 46 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 47 | |
| 48 | [[addreviewer.maxWithoutConfirmation]]addreviewer.maxWithoutConfirmation:: |
| 49 | + |
| 50 | The maximum number of reviewers a user can add at once by adding a |
| 51 | group as reviewer without being asked to confirm the operation. |
| 52 | + |
| 53 | If set to 0, the user will never be asked to confirm adding a group |
| 54 | as reviewer. |
| 55 | + |
| 56 | Default is 10. |
| Edwin Kempin | 5e65d9b | 2011-07-08 07:35:48 +0200 | [diff] [blame] | 57 | + |
| 58 | This setting only applies for adding reviewers in the Gerrit WebUI, |
| 59 | but is ignored when adding reviewers with the |
| Edwin Kempin | 33e92d0 | 2011-07-11 22:00:57 +0200 | [diff] [blame] | 60 | link:cmd-set-reviewers.html[set-reviewers] command. |
| Edwin Kempin | 49cb3e1 | 2011-06-29 14:35:14 +0200 | [diff] [blame] | 61 | |
| 62 | [[addreviewer.maxAllowed]]addreviewer.maxAllowed:: |
| 63 | + |
| 64 | The maximum number of reviewers a user can add at once by adding a |
| 65 | group as reviewer. |
| 66 | + |
| 67 | If set to 0, there is no limit for the number of reviewers that can |
| 68 | be added at once by adding a group as reviewer. |
| 69 | + |
| 70 | Default is 20. |
| 71 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 72 | [[auth]]Section auth |
| 73 | ~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 74 | |
| 75 | See also link:config-sso.html[SSO configuration]. |
| 76 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 77 | [[auth.type]]auth.type:: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 78 | + |
| Shawn O. Pearce | 2920ef3 | 2009-08-03 08:03:34 -0700 | [diff] [blame] | 79 | Type of user authentication employed by Gerrit. The supported |
| 80 | values are: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 81 | + |
| 82 | * `OpenID` |
| 83 | + |
| 84 | The default setting. Gerrit uses any valid OpenID |
| 85 | provider chosen by the end-user. For more information see |
| Shawn O. Pearce | 2920ef3 | 2009-08-03 08:03:34 -0700 | [diff] [blame] | 86 | http://openid.net/[openid.net]. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 87 | + |
| James E. Blair | ca8bc3b | 2011-12-21 18:12:26 +0000 | [diff] [blame] | 88 | * `OpenID_SSO` |
| 89 | + |
| 90 | Supports OpenID from a single provider. There is no registration |
| 91 | link, and the "Sign In" link sends the user directly to the provider's |
| 92 | SSO entry point. |
| 93 | + |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 94 | * `HTTP` |
| 95 | + |
| Shawn O. Pearce | 2920ef3 | 2009-08-03 08:03:34 -0700 | [diff] [blame] | 96 | Gerrit relies upon data presented in the HTTP request. This includes |
| Edwin Kempin | f1acbb8 | 2011-09-15 12:49:42 +0200 | [diff] [blame] | 97 | HTTP basic authentication, or some types of commercial single-sign-on |
| Shawn O. Pearce | 2920ef3 | 2009-08-03 08:03:34 -0700 | [diff] [blame] | 98 | solutions. With this setting enabled the authentication must |
| 99 | take place in the web server or servlet container, and not from |
| 100 | within Gerrit. |
| 101 | + |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 102 | * `HTTP_LDAP` |
| 103 | + |
| 104 | Exactly like `HTTP` (above), but additionally Gerrit pre-populates |
| 105 | a user's full name and email address based on information obtained |
| 106 | from the user's account object in LDAP. The user's group membership |
| 107 | is also pulled from LDAP, making any LDAP groups that a user is a |
| 108 | member of available as groups in Gerrit. |
| 109 | + |
| Sasa Zivkov | eabc897 | 2010-10-04 15:47:08 +0200 | [diff] [blame] | 110 | * `CLIENT_SSL_CERT_LDAP` |
| 111 | + |
| 112 | This authentication type is actually kind of SSO. Gerrit will configure |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 113 | Jetty's SSL channel to request the client's SSL certificate. For this |
| Sasa Zivkov | eabc897 | 2010-10-04 15:47:08 +0200 | [diff] [blame] | 114 | authentication to work a Gerrit administrator has to import the root |
| 115 | certificate of the trust chain used to issue the client's certificate |
| 116 | into the <review-site>/etc/keystore. |
| 117 | After the authentication is done Gerrit will obtain basic user |
| 118 | registration (name and email) from LDAP, and some group memberships. |
| 119 | Therefore, the "_LDAP" suffix in the name of this authentication type. |
| 120 | This authentication type can only be used under hosted daemon mode, and |
| 121 | the httpd.listenUrl must use https:// as the protocol. |
| 122 | + |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 123 | * `LDAP` |
| 124 | + |
| 125 | Gerrit prompts the user to enter a username and a password, which |
| 126 | it then verifies by performing a simple bind against the configured |
| 127 | <<ldap.server,ldap.server>>. In this configuration the web server |
| 128 | is not involved in the user authentication process. |
| 129 | + |
| Shawn O. Pearce | c892d34 | 2010-02-17 17:00:50 -0800 | [diff] [blame] | 130 | The actual username used in the LDAP simple bind request is the |
| 131 | account's full DN, which is discovered by first querying the |
| 132 | directory using either an anonymous request, or the configured |
| Robin Rosenberg | a3baed0 | 2012-10-14 14:09:32 +0200 | [diff] [blame] | 133 | <<ldap.username,ldap.username>> identity. Gerrit can also use kerberos if |
| 134 | <<ldap.authentication,ldap.authentication>> is set to `GSSAPI`. |
| Shawn O. Pearce | c892d34 | 2010-02-17 17:00:50 -0800 | [diff] [blame] | 135 | |
| 136 | * `LDAP_BIND` |
| 137 | + |
| 138 | Gerrit prompts the user to enter a username and a password, which |
| 139 | it then verifies by performing a simple bind against the configured |
| 140 | <<ldap.server,ldap.server>>. In this configuration the web server |
| 141 | is not involved in the user authentication process. |
| 142 | + |
| 143 | Unlike LDAP above, the username used to perform the LDAP simple bind |
| 144 | request is the exact string supplied by in the dialog by the user. |
| Robin Rosenberg | 524a303 | 2012-10-14 14:24:36 +0200 | [diff] [blame] | 145 | The configured <<ldap.username,ldap.username>> identity is not used to obtain |
| Shawn O. Pearce | c892d34 | 2010-02-17 17:00:50 -0800 | [diff] [blame] | 146 | account information. |
| 147 | + |
| Shawn O. Pearce | 2920ef3 | 2009-08-03 08:03:34 -0700 | [diff] [blame] | 148 | * `DEVELOPMENT_BECOME_ANY_ACCOUNT` |
| 149 | + |
| 150 | *DO NOT USE*. Only for use in a development environment. |
| 151 | + |
| 152 | When this is the configured authentication method a hyperlink titled |
| 153 | `Become` appears in the top right corner of the page, taking the |
| 154 | user to a form where they can enter the username of any existing |
| 155 | user account, and immediately login as that account, without any |
| 156 | authentication taking place. This form of authentication is only |
| 157 | useful for the GWT hosted mode shell, where OpenID authentication |
| 158 | redirects might be risky to the developer's host computer, and HTTP |
| 159 | authentication is not possible. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 160 | |
| 161 | + |
| 162 | By default, OpenID. |
| 163 | |
| Shawn O. Pearce | 533cafc | 2010-05-11 16:05:27 -0700 | [diff] [blame] | 164 | [[auth.allowedOpenID]]auth.allowedOpenID:: |
| 165 | + |
| 166 | List of permitted OpenID providers. A user may only authenticate |
| 167 | with an OpenID that matches this list. Only used if `auth.type` |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 168 | is set to OpenID (the default). |
| Shawn O. Pearce | 533cafc | 2010-05-11 16:05:27 -0700 | [diff] [blame] | 169 | + |
| Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 170 | Patterns may be either a |
| 171 | link:http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html[standard |
| 172 | Java regular expression (java.util.regex)] (start with `^` and |
| Shawn O. Pearce | 533cafc | 2010-05-11 16:05:27 -0700 | [diff] [blame] | 173 | end with `$`) or be a simple prefix (any other string). |
| 174 | + |
| 175 | By default, the list contains two values, `http://` and `https://`, |
| 176 | allowing users to authenticate with any OpenID provider. |
| 177 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 178 | [[auth.trustedOpenID]]auth.trustedOpenID:: |
| Shawn O. Pearce | d7c026d | 2009-08-05 20:11:22 -0700 | [diff] [blame] | 179 | + |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 180 | List of trusted OpenID providers. Only used if `auth.type` is |
| Shawn O. Pearce | d7c026d | 2009-08-05 20:11:22 -0700 | [diff] [blame] | 181 | set to OpenID (the default). |
| 182 | + |
| 183 | In order for a user to take advantage of permissions beyond those |
| 184 | granted to the `Anonymous Users` and `Registered Users` groups, |
| 185 | the user account must only have OpenIDs which match at least one |
| 186 | pattern from this list. |
| 187 | + |
| Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 188 | Patterns may be either a |
| 189 | link:http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html[standard |
| 190 | Java regular expression (java.util.regex)] (start with `^` and |
| Shawn O. Pearce | d7c026d | 2009-08-05 20:11:22 -0700 | [diff] [blame] | 191 | end with `$`) or be a simple prefix (any other string). |
| 192 | + |
| 193 | By default, the list contains two values, `http://` and `https://`, |
| 194 | allowing Gerrit to trust any OpenID it receives. |
| 195 | |
| Mike Gouline | d2ab0cd | 2012-12-18 11:20:53 +1100 | [diff] [blame] | 196 | [[auth.openIdDomain]]auth.openIdDomain:: |
| 197 | + |
| 198 | List of allowed OpenID email address domains. Only used if |
| 199 | `auth.type` is set to "OPENID" or "OPENID_SSO". |
| 200 | + |
| 201 | Domain is case insensitive and must be in the same form as it |
| 202 | appears in the email address, for example, "example.com". |
| 203 | + |
| 204 | By default, any domain is accepted. |
| 205 | |
| Shawn O. Pearce | 89030bc | 2010-04-24 17:25:29 -0700 | [diff] [blame] | 206 | [[auth.maxOpenIdSessionAge]]auth.maxOpenIdSessionAge:: |
| 207 | + |
| 208 | Time in seconds before an OpenID provider must force the user |
| 209 | to authenticate themselves again before authentication to this |
| 210 | Gerrit server. Currently this is only a polite request, and users |
| 211 | coming from providers that don't support the PAPE extension will |
| 212 | be accepted anyway. In the future it may be enforced, rejecting |
| 213 | users coming from providers that don't honor the max session age. |
| 214 | + |
| 215 | If set to 0, the provider will always force the user to authenticate |
| 216 | (e.g. supply their password). Values should use common unit suffixes |
| 217 | to express their setting: |
| 218 | + |
| 219 | * s, sec, second, seconds |
| 220 | * m, min, minute, minutes |
| 221 | * h, hr, hour, hours |
| 222 | * d, day, days |
| 223 | * w, week, weeks (`1 week` is treated as `7 days`) |
| 224 | * mon, month, months (`1 month` is treated as `30 days`) |
| 225 | * y, year, years (`1 year` is treated as `365 days`) |
| 226 | |
| 227 | + |
| 228 | Default is -1, permitting infinite time between authentications. |
| 229 | |
| Shawn O. Pearce | 34f38cf | 2011-06-16 19:18:54 -0700 | [diff] [blame] | 230 | [[auth.maxRegisterEmailTokenAge]]auth.maxRegisterEmailTokenAge:: |
| 231 | + |
| 232 | Time in seconds before an email verification token sent to a user in |
| 233 | order to validate their email address expires. |
| 234 | + |
| 235 | * s, sec, second, seconds |
| 236 | * m, min, minute, minutes |
| 237 | * h, hr, hour, hours |
| 238 | * d, day, days |
| 239 | * w, week, weeks (`1 week` is treated as `7 days`) |
| 240 | * mon, month, months (`1 month` is treated as `30 days`) |
| 241 | * y, year, years (`1 year` is treated as `365 days`) |
| 242 | |
| 243 | + |
| Shawn O. Pearce | d6bd00b | 2012-01-20 12:40:51 -0800 | [diff] [blame] | 244 | Default is 12 hours. |
| Shawn O. Pearce | 34f38cf | 2011-06-16 19:18:54 -0700 | [diff] [blame] | 245 | |
| James E. Blair | ca8bc3b | 2011-12-21 18:12:26 +0000 | [diff] [blame] | 246 | [[auth.openIdSsoUrl]]auth.openIdSsoUrl:: |
| 247 | + |
| 248 | The SSO entry point URL. Only used if `auth.type` was set to |
| 249 | OpenID_SSO. |
| 250 | + |
| 251 | The "Sign In" link will send users directly to this URL. |
| 252 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 253 | [[auth.httpHeader]]auth.httpHeader:: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 254 | + |
| 255 | HTTP header to trust the username from, or unset to select HTTP basic |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 256 | or digest authentication. Only used if `auth.type` is set to HTTP. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 257 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 258 | [[auth.logoutUrl]]auth.logoutUrl:: |
| Shawn O. Pearce | 12b5d84 | 2009-08-15 15:11:10 -0700 | [diff] [blame] | 259 | + |
| 260 | URL to redirect a browser to after the end-user has clicked on the |
| 261 | "Sign Out" link in the upper right corner. Organizations using an |
| 262 | enterprise single-sign-on solution may want to redirect the browser |
| 263 | to the SSO product's sign-out page. |
| 264 | + |
| 265 | If not set, the redirect returns to the list of all open changes. |
| 266 | |
| Shawn O. Pearce | c9d26b5 | 2009-12-16 08:05:27 -0800 | [diff] [blame] | 267 | [[auth.registerUrl]]auth.registerUrl:: |
| 268 | + |
| 269 | Target for the "Register" link in the upper right corner. Used only |
| 270 | when auth.type is `LDAP`. |
| 271 | + |
| 272 | If not set, no "Register" link is displayed. |
| 273 | |
| Chad Horohoe | 6589708 | 2012-11-10 10:26:25 -0800 | [diff] [blame] | 274 | [[auth.registerText]]auth.registerText:: |
| 275 | + |
| 276 | Text for the "Register" link in the upper right corner. Used only |
| 277 | when auth.type is `LDAP`. |
| 278 | + |
| 279 | If not set, defaults to "Register". |
| 280 | |
| David Pursehouse | 3d60449 | 2013-01-25 17:41:53 +0900 | [diff] [blame^] | 281 | [[auth.editFullNameUrl]]auth.editFullNameUrl:: |
| 282 | + |
| 283 | Target for the "Edit" button when the user is allowed to edit their |
| 284 | full name. |
| 285 | |
| 286 | [[auth.httpPasswordUrl]]auth.httpPasswordUrl:: |
| 287 | + |
| 288 | Target for the "Obtain Password" link. Used only when auth.type is |
| 289 | `LDAP`, `LDAP_BIND` or `CUSTOM_EXTENSION`. |
| 290 | + |
| 291 | |
| Piotr Sikora | 7cec2f8 | 2011-02-26 12:57:30 +0000 | [diff] [blame] | 292 | [[auth.cookiePath]]auth.cookiePath:: |
| 293 | + |
| 294 | Sets "path" attribute of the authentication cookie. |
| 295 | + |
| 296 | If not set, HTTP request's path is used. |
| 297 | |
| 298 | [[auth.cookieSecure]]auth.cookieSecure:: |
| 299 | + |
| 300 | Sets "secure" flag of the authentication cookie. If true, cookies |
| 301 | will be transmitted only over HTTPS protocol. |
| 302 | + |
| 303 | By default, false. |
| 304 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 305 | [[auth.emailFormat]]auth.emailFormat:: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 306 | + |
| 307 | Optional format string to construct user email addresses out of |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 308 | user login names. Only used if auth.type is `HTTP`, `HTTP_LDAP` |
| 309 | or `LDAP`. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 310 | + |
| Shawn O. Pearce | 44221bf | 2011-06-27 10:37:30 -0700 | [diff] [blame] | 311 | This value can be set to a format string, where `{0}` is replaced |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 312 | with the login name. E.g. "\{0\}+gerrit@example.com" with a user |
| 313 | login name of "foo" will produce "foo+gerrit@example.com" during |
| 314 | the first time user "foo" registers. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 315 | + |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 316 | If the site is using `HTTP_LDAP` or `LDAP`, using this option is |
| 317 | discouraged. Setting `ldap.accountEmailAddress` and importing the |
| 318 | email address from the LDAP directory is generally preferred. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 319 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 320 | [[auth.contributorAgreements]]auth.contributorAgreements:: |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 321 | + |
| 322 | Controls whether or not the contributor agreement features are |
| 323 | enabled for the Gerrit site. If enabled a user must complete a |
| 324 | contributor agreement before they can upload changes. |
| 325 | + |
| Marc Petit-Huguenin | bbb8549 | 2012-12-03 11:11:00 -0800 | [diff] [blame] | 326 | If enabled, the admin must also add one or more |
| 327 | link:config-cla.html[contributor-agreement sections] |
| 328 | in project.config and create agreement files under |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 329 | `'$site_path'/static`, so users can actually complete one or |
| Grzegorz Kossakowski | 28e4e1b | 2009-09-23 11:33:34 -0700 | [diff] [blame] | 330 | more agreements. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 331 | + |
| 332 | By default this is false (no agreements are used). |
| 333 | |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 334 | auth.allowGoogleAccountUpgrade:: |
| 335 | + |
| Shawn O. Pearce | 48eea07 | 2009-08-31 10:53:12 -0700 | [diff] [blame] | 336 | Allows Google Account users to automatically update their Gerrit |
| 337 | account when/if their Google Account OpenID identity token changes. |
| 338 | Identity tokens can change if the server changes hostnames, or |
| 339 | for other reasons known only to Google. The upgrade path works |
| 340 | by matching users by email address if the identity is not present, |
| 341 | and then changing the identity. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 342 | + |
| Shawn O. Pearce | 48eea07 | 2009-08-31 10:53:12 -0700 | [diff] [blame] | 343 | This setting also permits old Gerrit 1.x users to seamlessly upgrade |
| 344 | from Google Accounts on Google App Engine to OpenID authentication. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 345 | + |
| Shawn O. Pearce | 48eea07 | 2009-08-31 10:53:12 -0700 | [diff] [blame] | 346 | Having this enabled incurs an extra database query when Google |
| Shawn O. Pearce | e31d02c | 2009-12-08 12:21:37 -0800 | [diff] [blame] | 347 | Account users register with the Gerrit server. |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 348 | + |
| 349 | By default, unset/false. |
| 350 | |
| Christian Halstrick | a3d88a5 | 2011-08-31 09:21:41 +0200 | [diff] [blame] | 351 | [[auth.trustContainerAuth]]auth.trustContainerAuth:: |
| 352 | + |
| 353 | If true then it is the responsibility of the container hosting |
| 354 | Gerrit to authenticate users. In this case Gerrit will blindly trust |
| 355 | the container. |
| 356 | + |
| 357 | This parameter only affects git over http traffic. If set to false |
| 358 | then Gerrit will do the authentication (using DIGEST authentication). |
| 359 | + |
| 360 | By default this is set to false. |
| 361 | |
| Luca Milanesio | 4205884 | 2012-01-05 21:25:38 +0000 | [diff] [blame] | 362 | [[auth.gitBasicAuth]]auth.gitBasicAuth:: |
| 363 | + |
| 364 | If true then Git over HTTP and HTTP/S traffic is authenticated using |
| 365 | standard BasicAuth and credentials validated using the same auth |
| 366 | method configured for Gerrit Web UI. |
| 367 | + |
| 368 | This parameter only affects git over http traffic. If set to false |
| 369 | then Gerrit will authenticate through DIGEST authentication and |
| 370 | the randomly generated HTTP password in Gerrit DB. |
| 371 | + |
| 372 | By default this is set to false. |
| 373 | |
| Edwin Kempin | 4b9e5e7 | 2011-09-22 15:06:14 +0200 | [diff] [blame] | 374 | [[auth.userNameToLowerCase]]auth.userNameToLowerCase:: |
| 375 | + |
| 376 | If set the username that is received to authenticate a git operation |
| 377 | is converted to lower case for looking up the user account in Gerrit. |
| 378 | + |
| 379 | By setting this parameter a case insensitive authentication for the |
| 380 | git operations can be achieved, if it is ensured that the usernames in |
| 381 | Gerrit (scheme `username`) are stored in lower case (e.g. if the |
| 382 | parameter link:#ldap.accountSshUserName[ldap.accountSshUserName] is |
| 383 | set to `${sAMAccountName.toLowerCase}`). It is important that for all |
| 384 | existing accounts this username is already in lower case. It is not |
| 385 | possible to convert the usernames of the existing accounts to lower |
| 386 | case because this would break the access to existing per-user |
| 387 | branches. |
| 388 | + |
| 389 | This parameter only affects git over http and git over SSH traffic. |
| 390 | + |
| 391 | By default this is set to false. |
| 392 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 393 | [[cache]]Section cache |
| 394 | ~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 395 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 396 | [[cache.directory]]cache.directory:: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 397 | + |
| 398 | 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] | 399 | future lookup. This local disk cache is used to retain potentially |
| 400 | expensive to compute information across restarts. If the location |
| 401 | does not exist, Gerrit will try to create it. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 402 | + |
| Shawn O. Pearce | 4b21228 | 2009-08-05 19:45:56 -0700 | [diff] [blame] | 403 | If not absolute, the path is resolved relative to `$site_path`. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 404 | + |
| Shawn O. Pearce | 4b21228 | 2009-08-05 19:45:56 -0700 | [diff] [blame] | 405 | Default is unset, no disk cache. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 406 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 407 | [[cache.name.maxAge]]cache.<name>.maxAge:: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 408 | + |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 409 | Maximum age to keep an entry in the cache. Entries are removed from |
| 410 | the cache and refreshed from source data every maxAge interval. |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 411 | Values should use common unit suffixes to express their setting: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 412 | + |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 413 | * s, sec, second, seconds |
| 414 | * m, min, minute, minutes |
| 415 | * h, hr, hour, hours |
| 416 | * d, day, days |
| 417 | * w, week, weeks (`1 week` is treated as `7 days`) |
| 418 | * mon, month, months (`1 month` is treated as `30 days`) |
| 419 | * y, year, years (`1 year` is treated as `365 days`) |
| 420 | |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 421 | + |
| Shawn O. Pearce | 3fdbf39 | 2009-09-04 18:08:26 -0700 | [diff] [blame] | 422 | If a unit suffix is not specified, `minutes` is assumed. If 0 is |
| 423 | supplied, the maximum age is infinite and items are never purged |
| 424 | except when the cache is full. |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 425 | + |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 426 | Default is `0`, meaning store forever with no expire, except: |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 427 | + |
| Shawn O. Pearce | 05687e9 | 2011-04-04 17:29:03 -0400 | [diff] [blame] | 428 | * `"adv_bases"`: default is `10 minutes` |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 429 | * `"ldap_groups"`: default is `1 hour` |
| Shawn O. Pearce | d9c403e | 2009-08-19 08:35:41 -0700 | [diff] [blame] | 430 | * `"web_sessions"`: default is `12 hours` |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 431 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 432 | [[cache.name.memoryLimit]]cache.<name>.memoryLimit:: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 433 | + |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 434 | The total cost of entries to retain in memory. The cost computation |
| 435 | varies by the cache. For most caches where the in-memory size of each |
| 436 | entry is relatively the same, memoryLimit is currently defined to be |
| 437 | the number of entries held by the cache (each entry costs 1). |
| 438 | + |
| 439 | For caches where the size of an entry can vary significantly between |
| 440 | individual entries (notably `"diff"`, `"diff_intraline"`), memoryLimit |
| 441 | is an approximation of the total number of bytes stored by the cache. |
| 442 | Larger entries that represent bigger patch sets or longer source files |
| 443 | will consume a bigger portion of the memoryLimit. For these caches the |
| 444 | memoryLimit should be set to roughly the amount of RAM (in bytes) the |
| 445 | administrator can dedicate to the cache. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 446 | + |
| Shawn O. Pearce | efaf979 | 2009-09-02 18:12:52 -0700 | [diff] [blame] | 447 | Default is 1024 for most caches, except: |
| 448 | + |
| Shawn O. Pearce | 05687e9 | 2011-04-04 17:29:03 -0400 | [diff] [blame] | 449 | * `"adv_bases"`: default is `4096` |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 450 | * `"diff"`: default is `10m` (10 MiB of memory) |
| 451 | * `"diff_intraline"`: default is `10m` (10 MiB of memory) |
| 452 | * `"plugin_resources"`: default is 2m (2 MiB of memory) |
| 453 | |
| 454 | + |
| 455 | If set to 0 the cache is disabled. Entries are removed immediately |
| 456 | after being stored by the cache. This is primarily useful for testing. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 457 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 458 | [[cache.name.diskLimit]]cache.<name>.diskLimit:: |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 459 | + |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 460 | Total size in bytes of the keys and values stored on disk. Caches that |
| 461 | have grown bigger than this size are scanned daily at 1 AM local |
| 462 | server time to trim the cache. Entries are removed in least recently |
| 463 | accessed order until the cache fits within this limit. Caches may |
| 464 | grow larger than this during the day, as the size check is only |
| 465 | performed once every 24 hours. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 466 | + |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 467 | Default is 128 MiB per cache. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 468 | + |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 469 | If 0, disk storage for the cache is disabled. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 470 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 471 | [[cache_names]]Standard Caches |
| Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 472 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 473 | |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 474 | cache `"accounts"`:: |
| 475 | + |
| Shawn O. Pearce | 4dba988 | 2009-08-05 19:55:15 -0700 | [diff] [blame] | 476 | Cache entries contain important details of an active user, including |
| 477 | their display name, preferences, known email addresses, and group |
| 478 | memberships. Entry information is obtained from the following |
| 479 | database tables: |
| 480 | + |
| 481 | * `accounts` |
| 482 | + |
| 483 | * `account_group_members` |
| 484 | + |
| 485 | * `account_external_ids` |
| 486 | |
| 487 | + |
| 488 | If direct updates are made to any of these database tables, this |
| 489 | cache should be flushed. |
| 490 | |
| 491 | cache `"accounts_byemail"`:: |
| 492 | + |
| 493 | Caches account identities keyed by email address, which is scanned |
| 494 | from the `account_external_ids` database table. If updates are |
| 495 | made to this table, this cache should be flushed. |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 496 | |
| Shawn O. Pearce | 05687e9 | 2011-04-04 17:29:03 -0400 | [diff] [blame] | 497 | cache `"adv_bases"`:: |
| 498 | + |
| 499 | Used only for push over smart HTTP when branch level access controls |
| 500 | are enabled. The cache entry contains all commits that are avaliable |
| 501 | for the client to use as potential delta bases. Push over smart HTTP |
| 502 | requires two HTTP requests, and this cache tries to carry state from |
| 503 | the first request into the second to ensure it can complete. |
| 504 | |
| Gustaf Lundh | 47ce4e3 | 2012-05-21 11:18:42 +0200 | [diff] [blame] | 505 | cache `"changes"`:: |
| 506 | + |
| Gustaf Lundh | 5349377 | 2012-11-18 18:41:15 -0800 | [diff] [blame] | 507 | The size determines the number of projects that will have all its changes |
| 508 | cached. If the cache is set to 1024, this means all changes for up to |
| 509 | 1024 projects can be held in the cache. |
| 510 | + |
| 511 | Default size is 0 (disabled). It is disabled by default due to the fact |
| 512 | that change updates are not communicated between Gerrit servers. |
| 513 | Hence this cache should be disabled in an multi-master/multi-slave setup. |
| 514 | + |
| 515 | The cache should be flushed whenever the database changes table is modified |
| Gustaf Lundh | 47ce4e3 | 2012-05-21 11:18:42 +0200 | [diff] [blame] | 516 | outside of gerrit. |
| 517 | |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 518 | cache `"diff"`:: |
| 519 | + |
| Shawn O. Pearce | efaf979 | 2009-09-02 18:12:52 -0700 | [diff] [blame] | 520 | Each item caches the differences between two commits, at both the |
| 521 | directory and file levels. Gerrit uses this cache to accelerate |
| 522 | the display of affected file names, as well as file contents. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 523 | + |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 524 | Entries in this cache are relatively large, so memoryLimit is an |
| 525 | estimate in bytes of memory used. Administrators should try to target |
| 526 | cache.diff.memoryLimit to fit all changes users will view in a 1 or 2 |
| 527 | day span. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 528 | |
| Shawn O. Pearce | f0cfe53 | 2011-04-11 23:40:06 -0400 | [diff] [blame] | 529 | cache `"diff_intraline"`:: |
| 530 | + |
| 531 | Each item caches the intraline difference of one file, when compared |
| 532 | between two commits. Gerrit uses this cache to accelerate display of |
| 533 | intraline differences when viewing a file. |
| 534 | + |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 535 | Entries in this cache are relatively large, so memoryLimit is an |
| 536 | estimate in bytes of memory used. Administrators should try to target |
| 537 | cache.diff.memoryLimit to fit all files users will view in a 1 or 2 |
| 538 | day span. |
| Shawn O. Pearce | f0cfe53 | 2011-04-11 23:40:06 -0400 | [diff] [blame] | 539 | |
| Shawn O. Pearce | 2d65d29 | 2011-06-24 08:12:02 -0700 | [diff] [blame] | 540 | cache `"git_tags"`:: |
| 541 | + |
| 542 | If branch or reference level READ access controls are used, this |
| 543 | cache tracks which tags are reachable from the branch tips of a |
| 544 | repository. Gerrit uses this information to determine the set |
| 545 | of tags that a client may access, derived from which tags are |
| 546 | part of the history of a visible branch. |
| 547 | + |
| 548 | The cache is persisted to disk across server restarts as it can |
| 549 | be expensive to compute (60 or more seconds for a large history |
| 550 | like the Linux kernel repository). |
| 551 | |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 552 | cache `"groups"`:: |
| 553 | + |
| Shawn O. Pearce | 4dba988 | 2009-08-05 19:55:15 -0700 | [diff] [blame] | 554 | Caches the basic group information from the `account_groups` table, |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 555 | including the group owner, name, and description. |
| 556 | + |
| 557 | Gerrit group membership obtained from the `account_group_members` |
| 558 | table is cached under the `"accounts"` cache, above. External group |
| 559 | membership obtained from LDAP is cached under `"ldap_groups"`. |
| 560 | |
| Matt Fischer | 620255a | 2011-03-22 14:28:23 -0500 | [diff] [blame] | 561 | cache `"groups_byinclude"`:: |
| 562 | + |
| 563 | Caches group inclusions in other groups. If direct updates are made |
| 564 | to the `account_group_includes` table, this cache should be flushed. |
| 565 | |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 566 | cache `"ldap_groups"`:: |
| 567 | + |
| 568 | Caches the LDAP groups that a user belongs to, if LDAP has been |
| 569 | configured on this server. This cache should be configured with a |
| 570 | low maxAge setting, to ensure LDAP modifications are picked up in |
| 571 | a timely fashion. |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 572 | |
| Gustaf Lundh | 0919a49 | 2012-10-19 15:29:23 +0200 | [diff] [blame] | 573 | cache `"ldap_groups_byinclude"`:: |
| 574 | + |
| 575 | Caches the hierarchical structure of LDAP groups. |
| 576 | |
| Shawn O. Pearce | 6d26f4a | 2009-08-24 15:43:52 -0700 | [diff] [blame] | 577 | cache `"ldap_usernames"`:: |
| 578 | + |
| 579 | Caches a mapping of LDAP username to Gerrit account identity. The |
| 580 | cache automatically updates when a user first creates their account |
| 581 | within Gerrit, so the cache expire time is largely irrelevant. |
| 582 | |
| Shawn O. Pearce | 0c1abdb | 2011-06-24 11:01:25 -0700 | [diff] [blame] | 583 | cache `"permission_sort"`:: |
| 584 | + |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 585 | Caches the order in which access control sections must be applied to a |
| Shawn O. Pearce | 0c1abdb | 2011-06-24 11:01:25 -0700 | [diff] [blame] | 586 | reference. Sorting the sections can be expensive when regular |
| 587 | expressions are used, so this cache remembers the ordering for |
| 588 | each branch. |
| 589 | |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 590 | cache `"plugin_resources"`:: |
| 591 | + |
| 592 | Caches formatted plugin resources, such as plugin documentation that |
| 593 | has been converted from Markdown to HTML. The memoryLimit refers to |
| 594 | the bytes of memory dedicated to storing the documentation. |
| 595 | |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 596 | cache `"projects"`:: |
| 597 | + |
| 598 | Caches the project description records, from the `projects` table |
| 599 | in the database. If a project record is updated or deleted, this |
| 600 | cache should be flushed. Newly inserted projects do not require |
| 601 | a cache flush, as they will be read upon first reference. |
| 602 | |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 603 | cache `"sshkeys"`:: |
| 604 | + |
| 605 | Caches unpacked versions of user SSH keys, so the internal SSH daemon |
| 606 | can match against them during authentication. The unit of storage |
| 607 | is per-user, so 1024 items translates to 1024 unique user accounts. |
| 608 | As each individual user account may configure multiple SSH keys, |
| 609 | 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] | 610 | + |
| 611 | This cache is based off the `account_ssh_keys` table and the |
| 612 | `accounts.ssh_user_name` column in the database. If either is |
| 613 | modified directly, this cache should be flushed. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 614 | |
| Shawn O. Pearce | b09322b | 2009-08-15 17:49:00 -0700 | [diff] [blame] | 615 | cache `"web_sessions"`:: |
| 616 | + |
| 617 | Tracks the live user sessions coming in over HTTP. Flushing this |
| 618 | cache would cause all users to be signed out immediately, forcing |
| Shawn O. Pearce | 727d80f | 2009-08-17 07:57:54 -0700 | [diff] [blame] | 619 | them to sign-in again. To avoid breaking active users, this cache |
| 620 | is not flushed automatically by `gerrit flush-caches --all`, but |
| 621 | instead must be explicitly requested. |
| 622 | + |
| 623 | If no disk cache is configured (or `cache.web_sessions.diskLimit` |
| 624 | is set to 0) a server restart will force all users to sign-out, |
| 625 | and need to sign-in again after the restart, as the cache was |
| 626 | unable to persist the session information. Enabling a disk cache |
| 627 | is strongly recommended. |
| 628 | + |
| Shawn O. Pearce | 2e1cb2b | 2012-05-24 14:28:40 -0700 | [diff] [blame] | 629 | Session storage is relatively inexpensive. The average entry in |
| 630 | this cache is approximately 346 bytes. |
| Shawn O. Pearce | b09322b | 2009-08-15 17:49:00 -0700 | [diff] [blame] | 631 | |
| Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 632 | See also link:cmd-flush-caches.html[gerrit flush-caches]. |
| 633 | |
| Shawn O. Pearce | 29de436 | 2010-03-03 17:51:26 -0800 | [diff] [blame] | 634 | [[cache_options]]Cache Options |
| 635 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 636 | |
| Shawn O. Pearce | 617aa39 | 2010-11-15 14:03:28 -0800 | [diff] [blame] | 637 | cache.diff_intraline.maxIdleWorkers:: |
| 638 | + |
| 639 | Number of idle worker threads to maintain for the intraline difference |
| 640 | computations. There is no upper bound on how many concurrent requests |
| 641 | can occur at once, if additional threads are started to handle a peak |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 642 | load, only this many will remain idle afterwards. |
| Shawn O. Pearce | 617aa39 | 2010-11-15 14:03:28 -0800 | [diff] [blame] | 643 | + |
| 644 | Default is 1.5x number of available CPUs. |
| 645 | |
| 646 | cache.diff_intraline.timeout:: |
| 647 | + |
| 648 | Maximum number of milliseconds to wait for intraline difference data |
| 649 | before giving up and disabling it for a particular file pair. This is |
| 650 | a work around for an infinite loop bug in the intraline difference |
| 651 | implementation. If computation takes longer than the timeout the |
| 652 | worker thread is terminated and no intraline difference is displayed. |
| 653 | + |
| 654 | Values should use common unit suffixes to express their setting: |
| 655 | + |
| 656 | * ms, milliseconds |
| 657 | * s, sec, second, seconds |
| 658 | * m, min, minute, minutes |
| 659 | * h, hr, hour, hours |
| 660 | |
| 661 | + |
| 662 | If a unit suffix is not specified, `milliseconds` is assumed. |
| 663 | + |
| 664 | Default is 5 seconds. |
| 665 | |
| Shawn O. Pearce | 307dd4e | 2010-11-15 12:12:20 -0800 | [diff] [blame] | 666 | cache.diff_intraline.enabled:: |
| Shawn O. Pearce | 29de436 | 2010-03-03 17:51:26 -0800 | [diff] [blame] | 667 | + |
| 668 | Boolean to enable or disable the computation of intraline differences |
| Shawn O. Pearce | 307dd4e | 2010-11-15 12:12:20 -0800 | [diff] [blame] | 669 | when populating a diff cache entry. This flag is provided primarily |
| 670 | as a backdoor to disable the intraline difference feature if |
| 671 | necessary. To maintain backwards compatability with prior versions, |
| 672 | this setting will fallback to `cache.diff.intraline` if not set in the |
| 673 | configuration. |
| Shawn O. Pearce | 29de436 | 2010-03-03 17:51:26 -0800 | [diff] [blame] | 674 | + |
| 675 | Default is true, enabled. |
| 676 | |
| Shawn O. Pearce | b8e4e35 | 2011-05-19 18:09:01 -0700 | [diff] [blame] | 677 | cache.projects.checkFrequency:: |
| 678 | + |
| 679 | How often project configuration should be checked for update from Git. |
| 680 | Gerrit Code Review caches project access rules and configuration in |
| 681 | memory, checking the refs/meta/config branch every checkFrequency |
| 682 | minutes to see if a new revision should be loaded and used for future |
| 683 | access. Values can be specified using standard time unit abbreviations |
| 684 | ('ms', 'sec', 'min', etc.). |
| 685 | + |
| 686 | If set to 0, checks occur every time, which may slow down operations. |
| 687 | Administrators may force the cache to flush with |
| 688 | link:cmd-flush-caches.html[gerrit flush-caches]. |
| 689 | + |
| 690 | Default is 5 minutes. |
| 691 | |
| carloseduardo.baldacin | 14246de | 2011-07-14 17:52:22 -0300 | [diff] [blame] | 692 | [[changeMerge]]Section changeMerge |
| Remy Bohmer | 203eea3 | 2012-02-19 21:21:36 +0100 | [diff] [blame] | 693 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| carloseduardo.baldacin | 14246de | 2011-07-14 17:52:22 -0300 | [diff] [blame] | 694 | |
| Dave Borowitz | 204669c2 | 2012-10-11 11:06:08 -0700 | [diff] [blame] | 695 | changeMerge.checkFrequency:: |
| 696 | + |
| 697 | How often the database should be rescanned for changes that have been |
| 698 | submitted but not merged due to transient errors. Values can be |
| 699 | specified using standard time unit abbreviations ('ms', 'sec', 'min', |
| 700 | etc.). Set to 0 to disable periodic rescanning, only scanning once on |
| 701 | master node startup. |
| 702 | + |
| 703 | Default is 300 seconds (5 minutes). |
| 704 | |
| 705 | changeMerge.test:: |
| 706 | + |
| carloseduardo.baldacin | 14246de | 2011-07-14 17:52:22 -0300 | [diff] [blame] | 707 | Controls whether or not the mergeability test of changes is |
| 708 | enabled. If enabled, when the change page is loaded, the test is |
| 709 | triggered. The submit button will be enabled or disabled according to |
| 710 | the result. |
| Dave Borowitz | 204669c2 | 2012-10-11 11:06:08 -0700 | [diff] [blame] | 711 | + |
| carloseduardo.baldacin | 14246de | 2011-07-14 17:52:22 -0300 | [diff] [blame] | 712 | By default this is false (test is not enabled). |
| 713 | |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 714 | [[commentlink]]Section commentlink |
| Remy Bohmer | 203eea3 | 2012-02-19 21:21:36 +0100 | [diff] [blame] | 715 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 716 | Comment links are find/replace strings applied to change descriptions, |
| Chris Harris | 63c7cdd | 2012-11-23 12:17:36 -0500 | [diff] [blame] | 717 | patch comments, in-line code comments and approval category value descriptions |
| 718 | to turn set strings into hyperlinks. One common use is for linking to |
| 719 | bug-tracking systems. |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 720 | |
| 721 | In the following example configuration the 'changeid' comment link |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 722 | will match typical Gerrit Change-Id values and create a hyperlink |
| 723 | to changes which reference it. The second configuration 'bugzilla' |
| 724 | will hyperlink terms such as 'bug 42' to an external bug tracker, |
| 725 | supplying the argument record number '42' for display. The third |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 726 | configuration 'tracker' uses raw HTML to more precisely control |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 727 | how the replacement is displayed to the user. |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 728 | |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 729 | ---- |
| 730 | [commentlink "changeid"] |
| 731 | match = (I[0-9a-f]{8,40}) |
| 732 | link = "#q,$1,n,z" |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 733 | |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 734 | [commentlink "bugzilla"] |
| Shawn O. Pearce | c99630a | 2010-02-21 19:11:56 -0800 | [diff] [blame] | 735 | match = "(bug\\s+#?)(\\d+)" |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 736 | link = http://bugs.example.com/show_bug.cgi?id=$2 |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 737 | |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 738 | [commentlink "tracker"] |
| 739 | match = ([Bb]ug:\\s+)(\\d+) |
| 740 | html = $1<a href=\"http://trak.example.com/$2\">$2</a> |
| 741 | ---- |
| 742 | |
| 743 | [[commentlink.name.match]]commentlink.<name>.match:: |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 744 | + |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 745 | A JavaScript regular expression to match positions to be replaced |
| 746 | with a hyperlink. Subexpressions of the matched string can be |
| 747 | stored using groups and accessed with `$'n'` syntax, where 'n' |
| 748 | is the group number, starting from 1. |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 749 | + |
| Shawn O. Pearce | c99630a | 2010-02-21 19:11:56 -0800 | [diff] [blame] | 750 | The configuration file parser eats one level of backslashes, so the |
| 751 | character class `\s` requires `\\s` in the configuration file. The |
| 752 | parser also terminates the line at the first `#`, so a match |
| 753 | expression containing # must be wrapped in double quotes. |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 754 | + |
| Shawn O. Pearce | 665beaa | 2010-02-21 22:41:03 -0800 | [diff] [blame] | 755 | To match case insensitive strings, a character class with both the |
| 756 | upper and lower case character for each position must be used. For |
| 757 | example, to match the string `bug` in a case insensitive way the match |
| 758 | pattern `[bB][uU][gG]` needs to be used. |
| 759 | + |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 760 | A common pattern to match is `bug\\s+(\\d+)`. |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 761 | |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 762 | [[commentlink.name.link]]commentlink.<name>.link:: |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 763 | + |
| Shawn O. Pearce | da866ae | 2009-12-16 15:46:03 -0800 | [diff] [blame] | 764 | The URL to direct the user to whenever the regular expression is |
| 765 | matched. Groups in the match expression may be accessed as `$'n'`. |
| 766 | + |
| 767 | The link property is used only when the html property is not present. |
| 768 | |
| 769 | [[commentlink.name.html]]commentlink.<name>.html:: |
| 770 | + |
| 771 | HTML to replace the entire matched string with. If present, |
| 772 | this property overrides the link property above. Groups in the |
| 773 | match expression may be accessed as `$'n'`. |
| 774 | + |
| 775 | The configuration file eats double quotes, so escaping them as |
| 776 | `\"` is necessary to protect them from the parser. |
| Brad Larson | 991a31b | 2009-11-03 14:30:26 -0600 | [diff] [blame] | 777 | |
| 778 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 779 | [[contactstore]]Section contactstore |
| 780 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 781 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 782 | [[contactstore.url]]contactstore.url:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 783 | + |
| 784 | URL of the web based contact store Gerrit will send any offline |
| 785 | contact information to when it collects the data from users as part |
| 786 | of a contributor agreement. |
| 787 | + |
| 788 | See link:config-contact.html[Contact Information]. |
| 789 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 790 | [[contactstore.appsec]]contactstore.appsec:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 791 | + |
| 792 | Shared secret of the web based contact store. |
| 793 | |
| Shawn O. Pearce | e24c71fb | 2009-12-07 20:32:40 -0800 | [diff] [blame] | 794 | |
| 795 | [[container]]Section container |
| 796 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 797 | |
| 798 | These settings are applied only if Gerrit is started as the container |
| 799 | process through Gerrit's 'gerrit.sh' rc.d compatible wrapper script. |
| 800 | |
| 801 | [[container.heapLimit]]container.heapLimit:: |
| 802 | + |
| 803 | Maximum heap size of the Java process running Gerrit, in bytes. |
| 804 | This property is translated into the '-Xmx' flag for the JVM. |
| 805 | + |
| 806 | Default is platform and JVM specific. |
| 807 | + |
| 808 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 809 | |
| 810 | [[container.javaHome]]container.javaHome:: |
| 811 | + |
| 812 | Path of the JRE/JDK installation to run Gerrit with. If not set, the |
| 813 | Gerrit startup script will attempt to search your system and guess |
| 814 | a suitable JRE. Overrides the environment variable 'JAVA_HOME'. |
| 815 | |
| 816 | [[container.javaOptions]]container.javaOptions:: |
| 817 | + |
| 818 | Additional options to pass along to the Java runtime. If multiple |
| 819 | values are configured, they are passed in order on the command line, |
| 820 | separated by spaces. These options are appended onto 'JAVA_OPTIONS'. |
| 821 | |
| Fredrik Luthander | b8f7d6d | 2010-05-18 21:11:22 +0200 | [diff] [blame] | 822 | [[container.slave]]container.slave:: |
| 823 | + |
| 824 | Used on Gerrit slave installations. If set to true the Gerrit JVM is |
| 825 | called with the '--slave' switch, enabling slave mode. If no value is |
| 826 | set (or any other value), gerrit defaults to master mode. |
| 827 | |
| Shawn O. Pearce | e24c71fb | 2009-12-07 20:32:40 -0800 | [diff] [blame] | 828 | [[container.user]]container.user:: |
| 829 | + |
| 830 | Login name (or UID) of the operating system user the Gerrit JVM |
| 831 | will execute as. If not set, defaults to the user who launched |
| 832 | the 'gerrit.sh' wrapper script. |
| 833 | |
| 834 | [[container.war]]container.war:: |
| 835 | + |
| 836 | Path of the JAR file to start daemon execution with. This should |
| 837 | be the path of the local 'gerrit.war' archive. Overrides the |
| 838 | environment variable 'GERRIT_WAR'. |
| 839 | + |
| 840 | If not set, defaults to '$site_path/bin/gerrit.war', or to |
| 841 | '$HOME/gerrit.war'. |
| 842 | |
| 843 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 844 | [[core]]Section core |
| 845 | ~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 846 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 847 | [[core.packedGitWindowSize]]core.packedGitWindowSize:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 848 | + |
| 849 | Number of bytes of a pack file to load into memory in a single |
| 850 | read operation. This is the "page size" of the JGit buffer cache, |
| 851 | used for all pack access operations. All disk IO occurs as single |
| 852 | window reads. Setting this too large may cause the process to load |
| 853 | more data than is required; setting this too small may increase |
| 854 | the frequency of `read()` system calls. |
| 855 | + |
| 856 | Default on JGit is 8 KiB on all platforms. |
| 857 | + |
| 858 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 859 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 860 | [[core.packedGitLimit]]core.packedGitLimit:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 861 | + |
| 862 | Maximum number of bytes to load and cache in memory from pack files. |
| 863 | If JGit needs to access more than this many bytes it will unload less |
| 864 | frequently used windows to reclaim memory space within the process. |
| 865 | As this buffer must be shared with the rest of the JVM heap, it |
| 866 | should be a fraction of the total memory available. |
| 867 | + |
| 868 | Default on JGit is 10 MiB on all platforms. |
| 869 | + |
| 870 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 871 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 872 | [[core.deltaBaseCaseLimit]]core.deltaBaseCacheLimit:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 873 | + |
| 874 | Maximum number of bytes to reserve for caching base objects |
| 875 | that multiple deltafied objects reference. By storing the entire |
| 876 | decompressed base object in a cache Git is able to avoid unpacking |
| 877 | and decompressing frequently used base objects multiple times. |
| 878 | + |
| 879 | Default on JGit is 10 MiB on all platforms. You probably do not |
| 880 | need to adjust this value. |
| 881 | + |
| 882 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 883 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 884 | [[core.packedGitOpenFiles]]core.packedGitOpenFiles:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 885 | + |
| 886 | Maximum number of pack files to have open at once. A pack file |
| 887 | must be opened in order for any of its data to be available in |
| 888 | a cached window. |
| 889 | + |
| 890 | If you increase this to a larger setting you may need to also adjust |
| 891 | the ulimit on file descriptors for the host JVM, as Gerrit needs |
| 892 | additional file descriptors available for network sockets and other |
| 893 | repository data manipulation. |
| 894 | + |
| 895 | Default on JGit is 128 file descriptors on all platforms. |
| 896 | |
| Shawn O. Pearce | 329fe79 | 2010-09-03 15:44:23 -0700 | [diff] [blame] | 897 | [[core.streamFileThreshold]]core.streamFileThreshold:: |
| 898 | + |
| 899 | Largest object size, in bytes, that JGit will allocate as a |
| 900 | contiguous byte array. Any file revision larger than this threshold |
| 901 | will have to be streamed, typically requiring the use of temporary |
| 902 | files under '$GIT_DIR/objects' to implement psuedo-random access |
| 903 | during delta decompression. |
| 904 | + |
| 905 | Servers with very high traffic should set this to be larger than |
| 906 | the size of their common big files. For example a server managing |
| 907 | the Android platform typically has to deal with ~10-12 MiB XML |
| 908 | files, so `15 m` would be a reasonable setting in that environment. |
| 909 | Setting this too high may cause the JVM to run out of heap space |
| 910 | when handling very big binary files, such as device firmware or |
| 911 | CD-ROM ISO images. |
| 912 | + |
| Shawn O. Pearce | e3febd9 | 2010-10-13 21:17:53 -0700 | [diff] [blame] | 913 | 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] | 914 | this value was effectively 2047 MiB. |
| 915 | + |
| 916 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 917 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 918 | [[core.packedGitMmap]]core.packedGitMmap:: |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 919 | + |
| 920 | When true, JGit will use `mmap()` rather than `malloc()+read()` |
| 921 | to load data from pack files. The use of mmap can be problematic |
| 922 | on some JVMs as the garbage collector must deduce that a memory |
| 923 | mapped segment is no longer in use before a call to `munmap()` |
| 924 | can be made by the JVM native code. |
| 925 | + |
| 926 | In server applications (such as Gerrit) that need to access many |
| 927 | pack files, setting this to true risks artifically running out |
| 928 | of virtual address space, as the garbage collector cannot reclaim |
| 929 | unused mapped spaces fast enough. |
| 930 | + |
| 931 | Default on JGit is false. Although potentially slower, it yields |
| 932 | much more predictable behavior. |
| 933 | |
| Sasa Zivkov | f69aeb1 | 2012-06-11 14:05:14 +0200 | [diff] [blame] | 934 | [[core.asyncLoggingBufferSize]]core.asyncLoggingBufferSize:: |
| 935 | + |
| 936 | Size of the buffer to store logging events for asynchronous logging. |
| 937 | Putting a larger value can protect threads from stalling when the |
| 938 | AsyncAppender threads are not fast enough to consume the logging events |
| 939 | from the buffer. It also protects from loosing log entries in this case. |
| 940 | + |
| 941 | Default is 64 entries. |
| 942 | |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 943 | [[database]]Section database |
| 944 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 945 | |
| 946 | The database section configures where Gerrit stores its metadata |
| 947 | records about user accounts and change reviews. |
| 948 | |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 949 | ---- |
| 950 | [database] |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 951 | type = POSTGRESQL |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 952 | hostname = localhost |
| 953 | database = reviewdb |
| 954 | username = gerrit2 |
| 955 | password = s3kr3t |
| 956 | ---- |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 957 | |
| 958 | [[database.type]]database.type:: |
| 959 | + |
| 960 | Type of database server to connect to. If set this value will be |
| 961 | used to automatically create correct database.driver and database.url |
| 962 | values to open the connection. |
| 963 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 964 | * `POSTGRESQL` |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 965 | + |
| 966 | Connect to a PostgreSQL database server. |
| 967 | + |
| 968 | * `H2` |
| 969 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 970 | Connect to a local embedded H2 database. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 971 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 972 | * `MYSQL` |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 973 | + |
| 974 | Connect to a MySQL database server. |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 975 | + |
| 976 | * `JDBC` |
| 977 | + |
| 978 | Connect using a JDBC driver class name and URL. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 979 | |
| 980 | + |
| 981 | If not specified, database.driver and database.url are used as-is, |
| 982 | and if they are also not specified, defaults to H2. |
| 983 | |
| 984 | [[database.hostname]]database.hostname:: |
| 985 | + |
| 986 | Hostname of the database server. Defaults to 'localhost'. |
| 987 | |
| 988 | [[database.port]]database.port:: |
| 989 | + |
| 990 | Port number of the database server. Defaults to the default port |
| 991 | of the server named by database.type. |
| 992 | |
| 993 | [[database.database]]database.database:: |
| 994 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 995 | 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] | 996 | + |
| 997 | 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] | 998 | relative to `'$site_path'`. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 999 | |
| 1000 | [[database.username]]database.username:: |
| 1001 | + |
| 1002 | Username to connect to the database server as. |
| 1003 | |
| 1004 | [[database.password]]database.password:: |
| 1005 | + |
| 1006 | Password to authenticate to the database server with. |
| 1007 | |
| 1008 | [[database.driver]]database.driver:: |
| 1009 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 1010 | Name of the JDBC driver class to connect to the database with. |
| 1011 | Setting this usually isn't necessary as it can be derived from |
| 1012 | database.type or database.url for any supported database. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 1013 | |
| 1014 | [[database.url]]database.url:: |
| 1015 | + |
| Shawn O. Pearce | 1be3906 | 2009-12-19 14:11:52 -0800 | [diff] [blame] | 1016 | 'jdbc:' URL for the database. Setting this variable usually |
| 1017 | isn't necessary as it can be constructed from the all of the |
| 1018 | above properties. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 1019 | |
| Shawn O. Pearce | 07f35177d | 2010-02-23 09:47:10 -0800 | [diff] [blame] | 1020 | [[database.poolLimit]]database.poolLimit:: |
| 1021 | + |
| 1022 | Maximum number of open database connections. If the server needs |
| 1023 | more than this number, request processing threads will wait up |
| 1024 | to <<database.poolMaxWait, poolMaxWait>> seconds for a |
| 1025 | connection to be released before they abort with an exception. |
| 1026 | This limit must be several units higher than the total number of |
| 1027 | httpd and sshd threads as some request processing code paths may |
| 1028 | need multiple connections. |
| 1029 | + |
| 1030 | Default is 8. |
| 1031 | |
| Shawn O. Pearce | f458bf6 | 2010-02-25 09:03:03 -0800 | [diff] [blame] | 1032 | [[database.poolMinIdle]]database.poolMinIdle:: |
| Shawn O. Pearce | 07f35177d | 2010-02-23 09:47:10 -0800 | [diff] [blame] | 1033 | + |
| 1034 | Minimum number of connections to keep idle in the pool. |
| 1035 | Default is 4. |
| 1036 | |
| Shawn O. Pearce | f458bf6 | 2010-02-25 09:03:03 -0800 | [diff] [blame] | 1037 | [[database.poolMaxIdle]]database.poolMaxIdle:: |
| Shawn O. Pearce | 07f35177d | 2010-02-23 09:47:10 -0800 | [diff] [blame] | 1038 | + |
| 1039 | Maximum number of connections to keep idle in the pool. If there |
| 1040 | are more idle connections, connections will be closed instead of |
| 1041 | being returned back to the pool. |
| 1042 | Default is 4. |
| 1043 | |
| 1044 | [[database.poolMaxWait]]database.poolMaxWait:: |
| 1045 | + |
| 1046 | Maximum amount of time a request processing thread will wait to |
| 1047 | acquire a database connection from the pool. If no connection is |
| 1048 | released within this time period, the processing thread will abort |
| 1049 | its current operations and return an error to the client. |
| 1050 | Values should use common unit suffixes to express their setting: |
| 1051 | + |
| 1052 | * ms, milliseconds |
| 1053 | * s, sec, second, seconds |
| 1054 | * m, min, minute, minutes |
| 1055 | * h, hr, hour, hours |
| 1056 | |
| 1057 | + |
| 1058 | If a unit suffix is not specified, `milliseconds` is assumed. |
| 1059 | + |
| 1060 | Default is `30 seconds`. |
| 1061 | |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 1062 | [[download]]Section download |
| Nasser Grainawi | b9a5037 | 2010-08-10 07:57:47 -0600 | [diff] [blame] | 1063 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 1064 | |
| 1065 | ---- |
| 1066 | [download] |
| Edwin Kempin | 08b03a2 | 2012-09-14 16:32:57 +0200 | [diff] [blame] | 1067 | command = checkout |
| 1068 | command = cherry_pick |
| 1069 | command = pull |
| 1070 | command = format_patch |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 1071 | scheme = ssh |
| 1072 | scheme = http |
| 1073 | scheme = anon_http |
| 1074 | scheme = anon_git |
| 1075 | scheme = repo_download |
| 1076 | ---- |
| 1077 | |
| 1078 | The download section configures the allowed download methods. |
| 1079 | |
| Edwin Kempin | 08b03a2 | 2012-09-14 16:32:57 +0200 | [diff] [blame] | 1080 | [[download.command]]download.command:: |
| 1081 | + |
| 1082 | Commands that should be offered to download changes. |
| 1083 | + |
| 1084 | Multiple commands are supported: |
| 1085 | + |
| 1086 | * `checkout` |
| 1087 | + |
| 1088 | Command to fetch and checkout the patch set. |
| 1089 | + |
| 1090 | * `cherry_pick` |
| 1091 | + |
| 1092 | Command to fetch the patch set and to cherry-pick it onto the current |
| 1093 | commit. |
| 1094 | + |
| 1095 | * `pull` |
| 1096 | + |
| 1097 | Command to pull the patch set. |
| 1098 | + |
| 1099 | * `format_patch` |
| 1100 | + |
| 1101 | Command to fetch the patch set and to feed it into the `format-patch` |
| 1102 | command. |
| 1103 | |
| 1104 | + |
| 1105 | If `download.command` is not specified, all download commands are |
| 1106 | offered. |
| 1107 | |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 1108 | [[download.scheme]]download.scheme:: |
| 1109 | + |
| 1110 | Schemes that should be used to download changes. |
| 1111 | + |
| 1112 | Multiple schemes are supported: |
| 1113 | + |
| 1114 | * `http` |
| 1115 | + |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 1116 | Authenticated HTTP download is allowed. |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 1117 | + |
| 1118 | * `ssh` |
| 1119 | + |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 1120 | Authenticated SSH download is allowed. |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 1121 | + |
| 1122 | * `anon_http` |
| 1123 | + |
| 1124 | Anonymous HTTP download is allowed. |
| 1125 | + |
| 1126 | * `anon_git` |
| 1127 | + |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 1128 | Anonymous Git download is allowed. This is not default, it is also |
| 1129 | necessary to set <<gerrit.canonicalGitUrl,gerrit.canonicalGitUrl>> |
| 1130 | variable. |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 1131 | + |
| 1132 | * `repo_download` |
| 1133 | + |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 1134 | Gerrit advertises patch set downloads with the `repo download` |
| 1135 | command, assuming that all projects managed by this instance are |
| 1136 | generally worked on with the repo multi-repository tool. This is |
| 1137 | not default, as not all instances will deploy repo. |
| monica.dionisio | 3f63044 | 2010-06-29 15:42:57 -0300 | [diff] [blame] | 1138 | |
| 1139 | + |
| Edwin Kempin | 08b03a2 | 2012-09-14 16:32:57 +0200 | [diff] [blame] | 1140 | If `download.scheme` is not specified, SSH, HTTP and Anonymous HTTP |
| Shawn O. Pearce | 5c46a07 | 2010-08-23 08:33:32 -0700 | [diff] [blame] | 1141 | downloads are allowed. |
| Shawn O. Pearce | fb5548e | 2009-11-11 07:39:21 -0800 | [diff] [blame] | 1142 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 1143 | [[gerrit]]Section gerrit |
| 1144 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | eb7f8ce | 2009-06-01 09:57:15 -0700 | [diff] [blame] | 1145 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1146 | [[gerrit.basePath]]gerrit.basePath:: |
| Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame] | 1147 | + |
| 1148 | Local filesystem directory holding all Git repositories that |
| 1149 | Gerrit knows about and can process changes for. A project |
| 1150 | entity in Gerrit maps to a local Git repository by creating |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1151 | the path string `"${basePath}/${project_name}.git"`. |
| Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame] | 1152 | + |
| 1153 | If relative, the path is resolved relative to `'$site_path'`. |
| 1154 | |
| Shawn O. Pearce | 897d921 | 2011-06-16 16:59:59 -0700 | [diff] [blame] | 1155 | [[gerrit.allProjects]]gerrit.allProjects:: |
| 1156 | + |
| 1157 | Name of the permissions-only project defining global server |
| 1158 | access controls and settings. These are inherited into every |
| 1159 | other project managed by the running server. The name is |
| 1160 | relative to `gerrit.basePath`. |
| 1161 | + |
| 1162 | Defaults to `All-Projects` if not set. |
| 1163 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1164 | [[gerrit.canonicalWebUrl]]gerrit.canonicalWebUrl:: |
| Shawn O. Pearce | eb7f8ce | 2009-06-01 09:57:15 -0700 | [diff] [blame] | 1165 | + |
| 1166 | The default URL for Gerrit to be accessed through. |
| 1167 | + |
| 1168 | Typically this would be set to "http://review.example.com/" or |
| 1169 | "http://example.com/gerrit/" so Gerrit can output links that point |
| 1170 | back to itself. |
| 1171 | + |
| 1172 | Setting this is highly recommended, as its necessary for the upload |
| 1173 | code invoked by "git push" or "repo upload" to output hyperlinks |
| 1174 | to the newly uploaded changes. |
| 1175 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1176 | [[gerrit.canonicalGitUrl]]gerrit.canonicalGitUrl:: |
| Shawn O. Pearce | eb7f8ce | 2009-06-01 09:57:15 -0700 | [diff] [blame] | 1177 | + |
| 1178 | Optional base URL for repositories available over the anonymous git |
| 1179 | protocol. For example, set this to `git://mirror.example.com/base/` |
| 1180 | to have Gerrit display patch set download URLs in the UI. Gerrit |
| 1181 | automatically appends the project name onto the end of the URL. |
| 1182 | + |
| 1183 | By default unset, as the git daemon must be configured externally |
| 1184 | by the system administrator, and might not even be running on the |
| 1185 | same host as Gerrit. |
| 1186 | |
| Shawn O. Pearce | 5d6de52 | 2011-10-07 18:00:16 -0700 | [diff] [blame] | 1187 | [[gerrit.gitHttpUrl]]gerrit.gitHttpUrl:: |
| 1188 | + |
| 1189 | Optional base URL for repositories available over the HTTP |
| 1190 | protocol. For example, set this to `http://mirror.example.com/base/` |
| 1191 | to have Gerrit display URLs from this server, rather than itself. |
| 1192 | + |
| 1193 | By default unset, as the HTTP daemon must be configured externally |
| 1194 | by the system administrator, and might not even be running on the |
| 1195 | same host as Gerrit. |
| 1196 | |
| Shawn O. Pearce | b8bea1b | 2012-08-16 17:18:58 -0700 | [diff] [blame] | 1197 | [[gerrit.reportBugUrl]]gerrit.reportBugUrl:: |
| 1198 | + |
| 1199 | URL to direct users to when they need to report a bug about the |
| 1200 | Gerrit service. By default this links to the upstream Gerrit |
| 1201 | Code Review's own bug tracker but could be directed to the system |
| 1202 | administrator's ticket queue. |
| 1203 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 1204 | [[gitweb]]Section gitweb |
| 1205 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 1206 | |
| Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 1207 | Gerrit can forward requests to either an internally managed gitweb |
| 1208 | (which allows Gerrit to enforce some access controls), or to an |
| 1209 | externally managed gitweb (where the web server manages access). |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 1210 | See also link:config-gitweb.html[Gitweb Integration]. |
| 1211 | |
| Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 1212 | [[gitweb.cgi]]gitweb.cgi:: |
| 1213 | + |
| 1214 | Path to the locally installed `gitweb.cgi` executable. This CGI will |
| 1215 | be called by Gerrit Code Review when the URL `/gitweb` is accessed. |
| 1216 | Project level access controls are enforced prior to calling the CGI. |
| 1217 | + |
| 1218 | Defaults to `/usr/lib/cgi-bin/gitweb.cgi` if gitweb.url is not set. |
| 1219 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1220 | [[gitweb.url]]gitweb.url:: |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 1221 | + |
| 1222 | Optional URL of an affiliated gitweb service. Defines the |
| 1223 | web location where a `gitweb.cgi` is installed to browse |
| Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame] | 1224 | gerrit.basePath and the repositories it contains. |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 1225 | + |
| 1226 | Gerrit appends any necessary query arguments onto the end of this URL. |
| 1227 | For example, "?p=$project.git;h=$commit". |
| 1228 | |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 1229 | [[gitweb.type]]gitweb.type:: |
| 1230 | + |
| 1231 | Optional type of affiliated gitweb service. This allows using |
| Shawn O. Pearce | 2b11da0 | 2011-09-06 16:18:12 -0700 | [diff] [blame] | 1232 | alternatives to gitweb, such as cgit. If set to disabled there |
| 1233 | is no gitweb hyperlinking support. |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 1234 | + |
| Shawn O. Pearce | 2b11da0 | 2011-09-06 16:18:12 -0700 | [diff] [blame] | 1235 | Valid values are `gitweb`, `cgit`, `disabled` or `custom`. |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 1236 | |
| Edwin Kempin | d86909c | 2012-03-26 10:36:29 +0200 | [diff] [blame] | 1237 | [[gitweb.revision]]gitweb.revision:: |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 1238 | + |
| 1239 | Optional pattern to use for constructing the gitweb URL when pointing |
| 1240 | at a specific commit when `custom` is used above. |
| 1241 | + |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1242 | Valid replacements are `${project}` for the project name in Gerrit |
| 1243 | and `${commit}` for the SHA1 hash for the commit. |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 1244 | |
| Edwin Kempin | d86909c | 2012-03-26 10:36:29 +0200 | [diff] [blame] | 1245 | [[gitweb.project]]gitweb.project:: |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 1246 | + |
| 1247 | Optional pattern to use for constructing the gitweb URL when pointing |
| 1248 | at a specific project when `custom` is used above. |
| 1249 | + |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1250 | Valid replacements are `${project}` for the project name in Gerrit. |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 1251 | |
| Edwin Kempin | d86909c | 2012-03-26 10:36:29 +0200 | [diff] [blame] | 1252 | [[gitweb.branch]]gitweb.branch:: |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 1253 | + |
| 1254 | Optional pattern to use for constructing the gitweb URL when pointing |
| 1255 | at a specific branch when `custom` is used above. |
| 1256 | + |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1257 | Valid replacements are `${project}` for the project name in Gerrit |
| 1258 | and `${branch}` for the name of the branch. |
| Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 1259 | |
| Edwin Kempin | 6401156 | 2012-03-26 10:50:12 +0200 | [diff] [blame] | 1260 | [[gitweb.filehistory]]gitweb.filehistory:: |
| 1261 | + |
| 1262 | Optional pattern to use for constructing the gitweb URL when pointing |
| 1263 | at the history of a file in a specific branch when `custom` is used |
| 1264 | above. |
| 1265 | + |
| 1266 | Valid replacements are `${project}` for the project name in Gerrit, |
| 1267 | `${file}` for the file name and `${branch}` for the name of the |
| 1268 | branch. |
| 1269 | |
| Gustaf Lundh | a07d2e7 | 2011-10-27 15:26:35 -0700 | [diff] [blame] | 1270 | [[gitweb.linkname]]gitweb.linkname:: |
| 1271 | + |
| 1272 | Optional setting for modifying the link name presented to the user |
| 1273 | in the Gerrit web-UI. |
| 1274 | + |
| 1275 | Default linkname for custom type is "gitweb". |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1276 | |
| Adrian Goerler | f200707 | 2011-11-10 08:39:55 +0100 | [diff] [blame] | 1277 | [[gitweb.pathSeparator]]gitweb.pathSeparator:: |
| 1278 | + |
| 1279 | Optional character to substitute the standard path separator (slash) in |
| 1280 | project names and branch names. |
| 1281 | + |
| 1282 | By default, Gerrit will use hexadecimal encoding for slashes in project and |
| 1283 | branch names. Some web servers, such as Tomcat, reject this hexadecimal |
| 1284 | encoding in the URL. |
| 1285 | + |
| 1286 | Some alternative gitweb services, such as link:http://gitblit.com[Gitblit], |
| 1287 | allow using an alternative path separator character. In Gitblit, this can be |
| 1288 | configured through the property link:http://gitblit.com/properties.html[web.forwardSlashCharacter]. |
| 1289 | In Gerrit, the alternative path separator can be configured correspondingly |
| 1290 | using the property 'gitweb.pathSeparator'. |
| 1291 | + |
| 1292 | Valid values are the characters '*', '(' and ')'. |
| 1293 | |
| Edwin Kempin | 4bbff70 | 2013-01-11 09:59:53 +0100 | [diff] [blame] | 1294 | [[groups]]Section groups |
| 1295 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1296 | |
| 1297 | [[groups.newGroupsVisibleToAll]]groups.newGroupsVisibleToAll:: |
| 1298 | + |
| 1299 | Controls whether newly created groups should be by default visible to |
| 1300 | all registered users. |
| 1301 | + |
| 1302 | By default, false. |
| 1303 | |
| Shane Mc Cormack | 6c2b677 | 2010-01-12 21:56:44 +0000 | [diff] [blame] | 1304 | [[hooks]]Section hooks |
| Remy Bohmer | 203eea3 | 2012-02-19 21:21:36 +0100 | [diff] [blame] | 1305 | ~~~~~~~~~~~~~~~~~~~~~~ |
| Shane Mc Cormack | 6c2b677 | 2010-01-12 21:56:44 +0000 | [diff] [blame] | 1306 | |
| 1307 | See also link:config-hooks.html[Hooks]. |
| 1308 | |
| 1309 | [[hooks.path]]hooks.path:: |
| 1310 | + |
| 1311 | Optional path to hooks, if not specified then `'$site_path'/hooks` will be used. |
| 1312 | |
| 1313 | [[hooks.patchsetCreatedHook]]hooks.patchsetCreatedHook:: |
| 1314 | + |
| 1315 | Optional filename for the patchset created hook, if not specified then |
| 1316 | `patchset-created` will be used. |
| 1317 | |
| David Pursehouse | d556c19 | 2012-06-12 18:34:37 +0900 | [diff] [blame] | 1318 | [[hooks.draftPublishedHook]]hooks.draftPublishedHook:: |
| 1319 | + |
| 1320 | Optional filename for the draft published hook, if not specified then |
| 1321 | `draft-published` will be used. |
| 1322 | |
| Shane Mc Cormack | 6c2b677 | 2010-01-12 21:56:44 +0000 | [diff] [blame] | 1323 | [[hooks.commentAddedHook]]hooks.commentAddedHook:: |
| 1324 | + |
| 1325 | Optional filename for the comment added hook, if not specified then |
| 1326 | `comment-added` will be used. |
| 1327 | |
| 1328 | [[hooks.changeMergedHook]]hooks.changeMergedHook:: |
| 1329 | + |
| 1330 | Optional filename for the change merged hook, if not specified then |
| 1331 | `change-merged` will be used. |
| 1332 | |
| David Pursehouse | f9f3b27 | 2012-09-28 19:58:59 +0900 | [diff] [blame] | 1333 | [[hooks.mergeFailedHook]]hooks.mergeFailedHook:: |
| 1334 | + |
| 1335 | Optional filename for the merge failed hook, if not specified then |
| 1336 | `merge-failed` will be used. |
| 1337 | |
| Shane Mc Cormack | 6c2b677 | 2010-01-12 21:56:44 +0000 | [diff] [blame] | 1338 | [[hooks.changeAbandonedHook]]hooks.changeAbandonedHook:: |
| 1339 | + |
| 1340 | Optional filename for the change abandoned hook, if not specified then |
| 1341 | `change-abandoned` will be used. |
| 1342 | |
| David Pursehouse | a93c930 | 2012-06-15 16:29:26 +0900 | [diff] [blame] | 1343 | [[hooks.changeRestoredHook]]hooks.changeRestoredHook:: |
| 1344 | + |
| 1345 | Optional filename for the change restored hook, if not specified then |
| 1346 | `change-restored` will be used. |
| 1347 | |
| 1348 | [[hooks.refUpdatedHook]]hooks.refUpdatedHook:: |
| 1349 | + |
| 1350 | Optional filename for the ref updated hook, if not specified then |
| 1351 | `ref-updated` will be used. |
| 1352 | |
| David Pursehouse | 2336bd8 | 2012-09-21 12:50:19 +0900 | [diff] [blame] | 1353 | [[hooks.reviewerAddedHook]]hooks.reviewerAddedHook:: |
| 1354 | + |
| 1355 | Optional filename for the reviewer added hook, if not specified then |
| 1356 | `reviewer-added` will be used. |
| 1357 | |
| David Pursehouse | a93c930 | 2012-06-15 16:29:26 +0900 | [diff] [blame] | 1358 | [[hooks.claSignedHook]]hooks.claSignedHook:: |
| 1359 | + |
| 1360 | Optional filename for the CLA signed hook, if not specified then |
| 1361 | `cla-signed` will be used. |
| 1362 | |
| Chris Harris | f736d6c | 2012-11-21 09:35:56 -0500 | [diff] [blame] | 1363 | [[hooks.refUpdateHook]]hooks.refUpdateHook:: |
| 1364 | + |
| 1365 | Optional filename for the ref update hook, if not specified then |
| 1366 | `ref-update` will be used. |
| 1367 | |
| 1368 | [[hooks.syncHookTimeout]]hooks.syncHookTimeout:: |
| David Pursehouse | 6fdc8d9 | 2012-11-28 12:34:18 +0900 | [diff] [blame] | 1369 | + |
| 1370 | Optional timeout value in seconds for synchronous hooks, if not specified |
| Chris Harris | f736d6c | 2012-11-21 09:35:56 -0500 | [diff] [blame] | 1371 | then 30 seconds will be used. |
| 1372 | |
| Shawn O. Pearce | 309d8d3 | 2009-11-17 16:03:16 -0800 | [diff] [blame] | 1373 | [[http]]Section http |
| 1374 | ~~~~~~~~~~~~~~~~~~~~ |
| 1375 | |
| 1376 | [[http.proxy]]http.proxy:: |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1377 | + |
| 1378 | URL of the proxy server when making outgoing HTTP |
| 1379 | connections for OpenID login transactions. Syntax |
| 1380 | should be `http://`'hostname'`:`'port'. |
| Shawn O. Pearce | 309d8d3 | 2009-11-17 16:03:16 -0800 | [diff] [blame] | 1381 | |
| 1382 | [[http.proxyUsername]]http.proxyUsername:: |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1383 | + |
| 1384 | Optional username to authenticate to the HTTP proxy with. |
| Robin Rosenberg | 524a303 | 2012-10-14 14:24:36 +0200 | [diff] [blame] | 1385 | This property is honored only if the username does not |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1386 | appear in the http.proxy property above. |
| Shawn O. Pearce | 309d8d3 | 2009-11-17 16:03:16 -0800 | [diff] [blame] | 1387 | |
| 1388 | [[http.proxyPassword]]http.proxyPassword:: |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1389 | + |
| 1390 | Optional password to authenticate to the HTTP proxy with. |
| Robin Rosenberg | 524a303 | 2012-10-14 14:24:36 +0200 | [diff] [blame] | 1391 | This property is honored only if the password does not |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1392 | appear in the http.proxy property above. |
| Shawn O. Pearce | 309d8d3 | 2009-11-17 16:03:16 -0800 | [diff] [blame] | 1393 | |
| 1394 | |
| 1395 | [[httpd]]Section httpd |
| 1396 | ~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1397 | |
| 1398 | The httpd section configures the embedded servlet container. |
| 1399 | |
| 1400 | [[httpd.listenUrl]]httpd.listenUrl:: |
| 1401 | + |
| 1402 | Specifies the URLs the internal HTTP daemon should listen for |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1403 | connections on. The special hostname '*' may be used to listen |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1404 | on all local addresses. A context path may optionally be included, |
| 1405 | placing Gerrit Code Review's web address within a subdirectory of |
| 1406 | the server. |
| 1407 | + |
| 1408 | Multiple protocol schemes are supported: |
| 1409 | + |
| 1410 | * `http://`'hostname'`:`'port' |
| 1411 | + |
| 1412 | Plain-text HTTP protocol. If port is not supplied, defaults to 80, |
| 1413 | the standard HTTP port. |
| 1414 | + |
| 1415 | * `https://`'hostname'`:`'port' |
| 1416 | + |
| 1417 | SSL encrypted HTTP protocol. If port is not supplied, defaults to |
| 1418 | 443, the standard HTTPS port. |
| 1419 | + |
| 1420 | Externally facing production sites are encouraged to use a reverse |
| 1421 | proxy configuration and `proxy-https://` (below), rather than using |
| 1422 | the embedded servlet container to implement the SSL processing. |
| 1423 | The proxy server with SSL support is probably easier to configure, |
| 1424 | provides more configuration options to control cipher usage, and |
| 1425 | is likely using natively compiled encryption algorithms, resulting |
| 1426 | in higher throughput. |
| 1427 | + |
| 1428 | * `proxy-http://`'hostname'`:`'port' |
| 1429 | + |
| 1430 | Plain-text HTTP relayed from a reverse proxy. If port is not |
| 1431 | supplied, defaults to 8080. |
| 1432 | + |
| 1433 | Like http, but additional header parsing features are |
| 1434 | enabled to honor X-Forwarded-For, X-Forwarded-Host and |
| 1435 | X-Forwarded-Server. These headers are typically set by Apache's |
| 1436 | link:http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers[mod_proxy]. |
| 1437 | + |
| 1438 | * `proxy-https://`'hostname'`:`'port' |
| 1439 | + |
| 1440 | Plain text HTTP relayed from a reverse proxy that has already |
| 1441 | handled the SSL encryption/decryption. If port is not supplied, |
| 1442 | defaults to 8080. |
| 1443 | + |
| 1444 | Behaves exactly like proxy-http, but also sets the scheme to assume |
| 1445 | 'https://' is the proper URL back to the server. |
| 1446 | |
| 1447 | + |
| 1448 | If multiple values are supplied, the daemon will listen on all |
| 1449 | of them. |
| 1450 | + |
| 1451 | By default, http://*:8080. |
| 1452 | |
| 1453 | [[httpd.reuseAddress]]httpd.reuseAddress:: |
| 1454 | + |
| 1455 | If true, permits the daemon to bind to the port even if the port |
| 1456 | is already in use. If false, the daemon ensures the port is not |
| 1457 | in use before starting. Busy sites may need to set this to true |
| 1458 | to permit fast restarts. |
| 1459 | + |
| 1460 | By default, true. |
| 1461 | |
| 1462 | [[httpd.requestHeaderSize]]httpd.requestHeaderSize:: |
| 1463 | + |
| 1464 | Size, in bytes, of the buffer used to parse the HTTP headers of an |
| 1465 | incoming HTTP request. The entire request headers, including any |
| 1466 | cookies sent by the browser, must fit within this buffer, otherwise |
| 1467 | the server aborts with the response '413 Request Entity Too Large'. |
| 1468 | + |
| 1469 | One buffer of this size is allocated per active connection. |
| 1470 | Allocating a buffer that is too large wastes memory that cannot be |
| 1471 | reclaimed, allocating a buffer that is too small may cause unexpected |
| 1472 | errors caused by very long Referer URLs or large cookie values. |
| 1473 | + |
| 1474 | By default, 16384 (16 K), which is sufficient for most OpenID and |
| 1475 | other web-based single-sign-on integrations. |
| 1476 | |
| 1477 | [[httpd.sslKeyStore]]httpd.sslKeyStore:: |
| 1478 | + |
| 1479 | Path of the Java keystore containing the server's SSL certificate |
| 1480 | and private key. This keystore is required for `https://` in URL. |
| 1481 | + |
| 1482 | To create a self-signed certificate for simple internal usage: |
| 1483 | + |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1484 | ---- |
| 1485 | keytool -keystore keystore -alias jetty -genkey -keyalg RSA |
| 1486 | chmod 600 keystore |
| 1487 | ---- |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1488 | + |
| 1489 | If not absolute, the path is resolved relative to `$site_path`. |
| 1490 | + |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 1491 | By default, `$site_path/etc/keystore`. |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1492 | |
| 1493 | [[httpd.sslKeyPassword]]httpd.sslKeyPassword:: |
| 1494 | + |
| 1495 | Password used to decrypt the private portion of the sslKeyStore. |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 1496 | Java keystores require a password, even if the administrator |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1497 | doesn't want to enable one. |
| 1498 | + |
| 1499 | If set to the empty string the embedded server will prompt for the |
| 1500 | password during startup. |
| 1501 | + |
| 1502 | By default, `gerrit`. |
| 1503 | |
| Shawn O. Pearce | 1766f50 | 2010-01-15 10:49:46 -0800 | [diff] [blame] | 1504 | [[httpd.requestLog]]httpd.requestLog:: |
| 1505 | + |
| 1506 | Enable (or disable) the `'$site_path'/logs/httpd_log` request log. |
| 1507 | If enabled, an NCSA combined log format request log file is written |
| 1508 | out by the internal HTTP daemon. |
| 1509 | + |
| 1510 | By default, true if httpd.listenUrl uses http:// or https://, |
| 1511 | and false if httpd.listenUrl uses proxy-http:// or proxy-https://. |
| 1512 | |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1513 | [[httpd.acceptorThreads]]httpd.acceptorThreads:: |
| 1514 | + |
| 1515 | Number of worker threads dedicated to accepting new incoming TCP |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 1516 | connections and allocating them connection-specific resources. |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1517 | + |
| 1518 | By default, 2, which should be suitable for most high-traffic sites. |
| 1519 | |
| 1520 | [[httpd.minThreads]]httpd.minThreads:: |
| 1521 | + |
| 1522 | Minimum number of spare threads to keep in the worker thread pool. |
| 1523 | This number must be at least 1 larger than httpd.acceptorThreads |
| 1524 | multipled by the number of httpd.listenUrls configured. |
| 1525 | + |
| 1526 | By default, 5, suitable for most lower-volume traffic sites. |
| 1527 | |
| 1528 | [[httpd.maxThreads]]httpd.maxThreads:: |
| 1529 | + |
| 1530 | Maximum number of threads to permit in the worker thread pool. |
| 1531 | + |
| 1532 | By default 25, suitable for most lower-volume traffic sites. |
| 1533 | |
| 1534 | [[httpd.maxQueued]]httpd.maxQueued:: |
| 1535 | + |
| 1536 | Maximum number of client connections which can enter the worker |
| 1537 | thread pool waiting for a worker thread to become available. |
| 1538 | 0 disables the queue and permits infinite number of connections. |
| 1539 | + |
| 1540 | By default 50. |
| 1541 | |
| Shawn O. Pearce | e5452b7 | 2010-01-15 14:32:50 -0800 | [diff] [blame] | 1542 | [[httpd.maxWait]]httpd.maxWait:: |
| 1543 | + |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 1544 | Maximum amount of time a client will wait for an available |
| Shawn O. Pearce | e5452b7 | 2010-01-15 14:32:50 -0800 | [diff] [blame] | 1545 | thread to handle a project clone, fetch or push request over the |
| 1546 | smart HTTP transport. |
| 1547 | + |
| 1548 | Values should use common unit suffixes to express their setting: |
| 1549 | + |
| 1550 | * s, sec, second, seconds |
| 1551 | * m, min, minute, minutes |
| 1552 | * h, hr, hour, hours |
| 1553 | * d, day, days |
| 1554 | * w, week, weeks (`1 week` is treated as `7 days`) |
| 1555 | * mon, month, months (`1 month` is treated as `30 days`) |
| 1556 | * y, year, years (`1 year` is treated as `365 days`) |
| 1557 | |
| 1558 | + |
| 1559 | If a unit suffix is not specified, `minutes` is assumed. If 0 |
| 1560 | is supplied, the maximum age is infinite and connections will not |
| 1561 | abort until the client disconnects. |
| 1562 | + |
| 1563 | By default, 5 minutes. |
| 1564 | |
| Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame] | 1565 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 1566 | [[ldap]]Section ldap |
| 1567 | ~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1568 | |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 1569 | LDAP integration is only enabled if `auth.type` is set to |
| Sasa Zivkov | eabc897 | 2010-10-04 15:47:08 +0200 | [diff] [blame] | 1570 | `HTTP_LDAP`, `LDAP` or `CLIENT_SSL_CERT_LDAP`. See above for a |
| 1571 | detailed description of the auth.type settings and their |
| 1572 | implications. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1573 | |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1574 | An example LDAP configuration follows, and then discussion of |
| 1575 | the parameters introduced here. Suitable defaults for most |
| 1576 | parameters are automatically guessed based on the type of server |
| 1577 | detected during startup. The guessed defaults support both |
| 1578 | link:http://www.ietf.org/rfc/rfc2307.txt[RFC 2307] and Active |
| 1579 | Directory. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1580 | |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1581 | ---- |
| 1582 | [ldap] |
| 1583 | server = ldap://ldap.example.com |
| 1584 | |
| 1585 | accountBase = ou=people,dc=example,dc=com |
| 1586 | accountPattern = (&(objectClass=person)(uid=${username})) |
| 1587 | accountFullName = displayName |
| 1588 | accountEmailAddress = mail |
| 1589 | |
| 1590 | groupBase = ou=groups,dc=example,dc=com |
| 1591 | groupMemberPattern = (&(objectClass=group)(member=${dn})) |
| 1592 | ---- |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1593 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1594 | [[ldap.server]]ldap.server:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1595 | + |
| 1596 | URL of the organization's LDAP server to query for user information |
| 1597 | and group membership from. Must be of the form `ldap://host` or |
| 1598 | `ldaps://host` to bind with either a plaintext or SSL connection. |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 1599 | + |
| 1600 | If auth.type is `LDAP` this setting should use `ldaps://` to |
| 1601 | ensure the end user's plaintext password is transmitted only over |
| 1602 | an encrypted connection. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1603 | |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1604 | [[ldap.sslVerify]]ldap.sslVerify:: |
| 1605 | + |
| 1606 | If false and ldap.server is an `ldaps://` style URL, Gerrit |
| 1607 | will not verify the server certificate when it connects to |
| 1608 | perform a query. |
| 1609 | + |
| 1610 | By default, true, requiring the certificate to be verified. |
| 1611 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1612 | [[ldap.username]]ldap.username:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1613 | + |
| 1614 | _(Optional)_ Username to bind to the LDAP server with. If not set, |
| 1615 | an anonymous connection to the LDAP server is attempted. |
| 1616 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1617 | [[ldap.password]]ldap.password:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1618 | + |
| 1619 | _(Optional)_ Password for the user identified by `ldap.username`. |
| 1620 | If not set, an anonymous (or passwordless) connection to the LDAP |
| 1621 | server is attempted. |
| 1622 | |
| Ben Wu | 0410a15 | 2010-06-04 16:17:24 +0800 | [diff] [blame] | 1623 | [[ldap.referral]]ldap.referral:: |
| 1624 | + |
| 1625 | _(Optional)_ How an LDAP referral should be handled if it is |
| 1626 | encountered during directory traversal. Set to `follow` to |
| James Y Knight | 1244ed0 | 2011-01-04 02:40:32 -0500 | [diff] [blame] | 1627 | automatically follow any referrals, or `ignore` to ignore the |
| 1628 | referrals. |
| Ben Wu | 0410a15 | 2010-06-04 16:17:24 +0800 | [diff] [blame] | 1629 | + |
| 1630 | By default, `ignore`. |
| 1631 | |
| Sasa Zivkov | 100bd4b | 2011-11-07 14:58:46 +0100 | [diff] [blame] | 1632 | [[ldap.readTimeout]]ldap.readTimeout:: |
| 1633 | + |
| 1634 | _(Optional)_ The read timeout for an LDAP operation. The value is |
| 1635 | in the usual time-unit format like "1 s", "100 ms", etc... |
| 1636 | A timeout can be used to avoid blocking all of the SSH command start |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 1637 | threads in case the LDAP server becomes slow. |
| Sasa Zivkov | 100bd4b | 2011-11-07 14:58:46 +0100 | [diff] [blame] | 1638 | + |
| 1639 | By default there is no timeout and Gerrit will wait for the LDAP |
| 1640 | server to respond until the TCP connection times out. |
| 1641 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1642 | [[ldap.accountBase]]ldap.accountBase:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1643 | + |
| 1644 | Root of the tree containing all user accounts. This is typically |
| 1645 | of the form `ou=people,dc=example,dc=com`. |
| 1646 | |
| Shawn O. Pearce | 304ccdb | 2009-08-25 12:25:27 -0700 | [diff] [blame] | 1647 | [[ldap.accountScope]]ldap.accountScope:: |
| 1648 | + |
| 1649 | Scope of the search performed for accounts. Must be one of: |
| 1650 | + |
| 1651 | * `one`: Search only one level below accountBase, but not recursive |
| 1652 | * `sub` or `subtree`: Search recursively below accountBase |
| 1653 | * `base` or `object`: Search exactly accountBase; probably not desired |
| 1654 | |
| 1655 | + |
| 1656 | Default is `subtree` as many directories have several levels. |
| 1657 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1658 | [[ldap.accountPattern]]ldap.accountPattern:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1659 | + |
| 1660 | Query pattern to use when searching for a user account. This may be |
| 1661 | any valid LDAP query expression, including the standard `(&...)` and |
| 1662 | `(|...)` operators. If auth.type is `HTTP_LDAP` then the variable |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1663 | `${username}` is replaced with a parameter set to the username |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 1664 | that was supplied by the HTTP server. If auth.type is `LDAP` then |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1665 | the variable `${username}` is replaced by the string entered by |
| Shawn O. Pearce | f7e065e | 2009-09-26 20:01:10 -0700 | [diff] [blame] | 1666 | the end user. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1667 | + |
| 1668 | This pattern is used to search the objects contained directly under |
| 1669 | the `ldap.accountBase` tree. A typical setting for this parameter |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1670 | is `(uid=${username})` or `(cn=${username})`, but the proper |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1671 | setting depends on the LDAP schema used by the directory server. |
| 1672 | + |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1673 | Default is `(uid=${username})` for RFC 2307 servers, |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1674 | and `(&(objectClass=user)(sAMAccountName=${username}))` |
| 1675 | for Active Directory. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1676 | |
| Shawn O. Pearce | 37dc1f8 | 2009-08-19 09:49:07 -0700 | [diff] [blame] | 1677 | [[ldap.accountFullName]]ldap.accountFullName:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1678 | + |
| 1679 | _(Optional)_ Name of an attribute on the user account object which |
| 1680 | contains the initial value for the user's full name field in Gerrit. |
| 1681 | Typically this is the `displayName` property in LDAP, but could |
| 1682 | also be `legalName` or `cn`. |
| 1683 | + |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 1684 | Attribute values may be concatenated with literal strings. For |
| 1685 | example to join given name and surname together, use the pattern |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1686 | `${givenName} ${SN}`. |
| Shawn O. Pearce | b86ae00 | 2009-09-26 16:54:05 -0700 | [diff] [blame] | 1687 | + |
| Shawn O. Pearce | 3ca1dcf | 2009-08-20 08:56:23 -0700 | [diff] [blame] | 1688 | If set, users will be unable to modify their full name field, as |
| 1689 | Gerrit will populate it only from the LDAP data. |
| 1690 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1691 | Default is `displayName` for RFC 2307 servers, |
| 1692 | and `${givenName} ${sn}` for Active Directory. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1693 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1694 | [[ldap.accountEmailAddress]]ldap.accountEmailAddress:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1695 | + |
| 1696 | _(Optional)_ Name of an attribute on the user account object which |
| 1697 | contains the user's Internet email address, as defined by this |
| 1698 | LDAP server. |
| 1699 | + |
| Shawn O. Pearce | b86ae00 | 2009-09-26 16:54:05 -0700 | [diff] [blame] | 1700 | Attribute values may be concatenated with literal strings, |
| 1701 | for example to set the email address to the lowercase form |
| 1702 | of sAMAccountName followed by a constant domain name, use |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1703 | `${sAMAccountName.toLowerCase}@example.com`. |
| Shawn O. Pearce | b86ae00 | 2009-09-26 16:54:05 -0700 | [diff] [blame] | 1704 | + |
| Shawn O. Pearce | 3ca1dcf | 2009-08-20 08:56:23 -0700 | [diff] [blame] | 1705 | If set, the preferred email address will be prefilled from LDAP, |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 1706 | but users may still be able to register additional email addresses, |
| Shawn O. Pearce | 3ca1dcf | 2009-08-20 08:56:23 -0700 | [diff] [blame] | 1707 | and select a different preferred email address. |
| 1708 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1709 | Default is `mail`. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1710 | |
| Shawn O. Pearce | 59e0922 | 2009-08-19 09:04:49 -0700 | [diff] [blame] | 1711 | [[ldap.accountSshUserName]]ldap.accountSshUserName:: |
| 1712 | + |
| 1713 | _(Optional)_ Name of an attribute on the user account object which |
| 1714 | contains the initial value for the user's SSH username field in |
| 1715 | Gerrit. Typically this is the `uid` property in LDAP, but could |
| 1716 | also be `cn`. Administrators should prefer to match the attribute |
| 1717 | corresponding to the user's workstation username, as this is what |
| 1718 | SSH clients will default to. |
| 1719 | + |
| Shawn O. Pearce | b86ae00 | 2009-09-26 16:54:05 -0700 | [diff] [blame] | 1720 | Attribute values may also be forced to lowercase, or to uppercase in |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1721 | an expression. For example, `${sAMAccountName.toLowerCase}` will |
| Shawn O. Pearce | b86ae00 | 2009-09-26 16:54:05 -0700 | [diff] [blame] | 1722 | force the value of sAMAccountName, if defined, to be all lowercase. |
| 1723 | The suffix `.toUpperCase` can be used for the other direction. |
| 1724 | The suffix `.localPart` can be used to split attribute values of |
| 1725 | the form 'user@example.com' and return only the left hand side, for |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1726 | example `${userPrincipalName.localPart}` would provide only 'user'. |
| Shawn O. Pearce | b86ae00 | 2009-09-26 16:54:05 -0700 | [diff] [blame] | 1727 | + |
| Shawn O. Pearce | 3ca1dcf | 2009-08-20 08:56:23 -0700 | [diff] [blame] | 1728 | If set, users will be unable to modify their SSH username field, as |
| 1729 | Gerrit will populate it only from the LDAP data. |
| 1730 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1731 | Default is `uid` for RFC 2307 servers, |
| 1732 | and `${sAMAccountName.toLowerCase}` for Active Directory. |
| Shawn O. Pearce | 59e0922 | 2009-08-19 09:04:49 -0700 | [diff] [blame] | 1733 | |
| Shawn O. Pearce | 7d25f78 | 2009-10-30 08:01:03 -0700 | [diff] [blame] | 1734 | [[ldap.accountMemberField]]ldap.accountMemberField:: |
| Anthony | 93de7db | 2009-10-03 10:01:50 -0400 | [diff] [blame] | 1735 | + |
| 1736 | _(Optional)_ Name of an attribute on the user account object which |
| Shawn O. Pearce | 7d25f78 | 2009-10-30 08:01:03 -0700 | [diff] [blame] | 1737 | contains the groups the user is part of. Typically used for Active |
| 1738 | Directory servers. |
| Anthony | 93de7db | 2009-10-03 10:01:50 -0400 | [diff] [blame] | 1739 | + |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1740 | Default is unset for RFC 2307 servers (disabled) |
| 1741 | and `memberOf` for Active Directory. |
| Anthony | 93de7db | 2009-10-03 10:01:50 -0400 | [diff] [blame] | 1742 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1743 | [[ldap.groupBase]]ldap.groupBase:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1744 | + |
| 1745 | Root of the tree containing all group objects. This is typically |
| 1746 | of the form `ou=groups,dc=example,dc=com`. |
| 1747 | |
| Shawn O. Pearce | 304ccdb | 2009-08-25 12:25:27 -0700 | [diff] [blame] | 1748 | [[ldap.groupScope]]ldap.groupScope:: |
| 1749 | + |
| 1750 | Scope of the search performed for group objects. Must be one of: |
| 1751 | + |
| 1752 | * `one`: Search only one level below groupBase, but not recursive |
| 1753 | * `sub` or `subtree`: Search recursively below groupBase |
| 1754 | * `base` or `object`: Search exactly groupBase; probably not desired |
| 1755 | |
| 1756 | + |
| 1757 | Default is `subtree` as many directories have several levels. |
| 1758 | |
| Shawn O. Pearce | 7d25f78 | 2009-10-30 08:01:03 -0700 | [diff] [blame] | 1759 | [[ldap.groupPattern]]ldap.groupPattern:: |
| 1760 | + |
| 1761 | Query pattern used when searching for an LDAP group to connect |
| 1762 | to a Gerrit group. This may be any valid LDAP query expression, |
| 1763 | including the standard `(&...)` and `(|...)` operators. The variable |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1764 | `${groupname}` is replaced with the search term supplied by the |
| Shawn O. Pearce | 7d25f78 | 2009-10-30 08:01:03 -0700 | [diff] [blame] | 1765 | group owner. |
| 1766 | + |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1767 | Default is `(cn=${groupname})` for RFC 2307, |
| 1768 | and `(&(objectClass=group)(cn=${groupname}))` for Active Directory. |
| Shawn O. Pearce | 7d25f78 | 2009-10-30 08:01:03 -0700 | [diff] [blame] | 1769 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1770 | [[ldap.groupMemberPattern]]ldap.groupMemberPattern:: |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1771 | + |
| 1772 | Query pattern to use when searching for the groups that a user |
| 1773 | account is currently a member of. This may be any valid LDAP query |
| 1774 | expression, including the standard `(&...)` and `(|...)` operators. |
| 1775 | + |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1776 | If auth.type is `HTTP_LDAP` then the variable `${username}` is |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1777 | replaced with a parameter set to the username that was supplied |
| 1778 | by the HTTP server. Other variables appearing in the pattern, |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1779 | such as `${fooBarAttribute}`, are replaced with the value of the |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1780 | corresponding attribute (in this case, `fooBarAttribute`) as read |
| 1781 | from the user's account object matched under `ldap.accountBase`. |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1782 | Attributes such as `${dn}` or `${uidNumber}` may be useful. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1783 | + |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1784 | Default is `(memberUid=${username})` for RFC 2307, |
| Shawn O. Pearce | 02c2e80 | 2009-10-29 14:46:03 -0700 | [diff] [blame] | 1785 | and unset (disabled) for Active Directory. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1786 | |
| Auke Schrijnen | 5780913 | 2012-09-26 21:05:39 +0200 | [diff] [blame] | 1787 | [[ldap.groupName]]ldap.groupName:: |
| 1788 | + |
| David Pursehouse | 39489ae | 2012-10-12 13:50:04 +0900 | [diff] [blame] | 1789 | _(Optional)_ Name of the attribute on the group object which contains |
| 1790 | the value to use as the group name in Gerrit. |
| Auke Schrijnen | 5780913 | 2012-09-26 21:05:39 +0200 | [diff] [blame] | 1791 | + |
| David Pursehouse | 39489ae | 2012-10-12 13:50:04 +0900 | [diff] [blame] | 1792 | Typically the attribute name is `cn` for RFC 2307 and Active Directory |
| 1793 | servers. For other servers the attribute name may differ, for example |
| 1794 | `apple-group-realname` on Apple MacOS X Server. |
| Auke Schrijnen | 5780913 | 2012-09-26 21:05:39 +0200 | [diff] [blame] | 1795 | + |
| David Pursehouse | 39489ae | 2012-10-12 13:50:04 +0900 | [diff] [blame] | 1796 | It is also possible to specify a literal string containing a pattern of |
| 1797 | attribute values. For example to create a Gerrit group name consisting of |
| 1798 | LDAP group name and group ID, use the pattern `${cn} (${gidNumber})`. |
| 1799 | + |
| 1800 | Default is `cn`. |
| Auke Schrijnen | 5780913 | 2012-09-26 21:05:39 +0200 | [diff] [blame] | 1801 | |
| Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 1802 | [[ldap.localUsernameToLowerCase]]ldap.localUsernameToLowerCase:: |
| 1803 | + |
| 1804 | Converts the local username, that is used to login into the Gerrit |
| 1805 | WebUI, to lower case before doing the LDAP authentication. By setting |
| 1806 | this parameter to true, a case insensitive login to the Gerrit WebUI |
| 1807 | can be achieved. |
| 1808 | + |
| 1809 | If set, it must be ensured that the local usernames for all existing |
| 1810 | accounts are converted to lower case, otherwise a user that has a |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 1811 | local username that contains upper case characters will not be able to login |
| Edwin Kempin | b3b0d29 | 2011-09-14 14:17:34 +0200 | [diff] [blame] | 1812 | anymore. The local usernames for the existing accounts can be |
| 1813 | converted to lower case by running the server program |
| 1814 | link:pgm-LocalUsernamesToLowerCase.html[LocalUsernamesToLowerCase]. |
| 1815 | Please be aware that the conversion of the local usernames to lower |
| 1816 | case can't be undone. For newly created accounts the local username |
| 1817 | will be directly stored in lower case. |
| 1818 | + |
| 1819 | By default, unset/false. |
| Shawn O. Pearce | 302a7dd | 2009-08-18 19:33:15 -0700 | [diff] [blame] | 1820 | |
| Robin Rosenberg | a3baed0 | 2012-10-14 14:09:32 +0200 | [diff] [blame] | 1821 | [[ldap.authentication]]ldap.authentication:: |
| 1822 | + |
| 1823 | Defines how Gerrit authenticates with the server. When set to `GSSAPI` |
| 1824 | Gerrit will use Kerberos. To use kerberos the |
| 1825 | `java.security.auth.login.config` system property must point to a |
| 1826 | login to a JAAS configuration file and, if Java 6 is used, the system |
| 1827 | property `java.security.krb5.conf` must point to the appropriate |
| 1828 | krb5.ini file with references to the KDC. |
| 1829 | |
| 1830 | Typical jaas.conf. |
| 1831 | |
| 1832 | ---- |
| 1833 | KerberosLogin { |
| 1834 | com.sun.security.auth.module.Krb5LoginModule |
| 1835 | required |
| 1836 | useTicketCache=true |
| 1837 | doNotPrompt=true |
| 1838 | renewTGT=true; |
| 1839 | }; |
| 1840 | ---- |
| 1841 | |
| 1842 | See Java documentation on how to create the krb5.ini file. |
| 1843 | |
| 1844 | Note the `renewTGT` property to make sure the TGT does not expire, |
| 1845 | and `useTicketCache` to use the TGT supplied by the operating system. As |
| 1846 | the whole point of using GSSAPI is to have passwordless authentication |
| 1847 | to the LDAP service, this option does not aquire a new TGT on its own. |
| 1848 | |
| 1849 | On Windows servers the registry key `HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters` |
| 1850 | must have the DWORD value `allowtgtsessionkey` set to 1 and the account must not |
| 1851 | have local administrator privileges. |
| 1852 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 1853 | [[mimetype]]Section mimetype |
| 1854 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 01cb1190 | 2009-07-15 08:19:01 -0700 | [diff] [blame] | 1855 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 1856 | [[mimetype.name.safe]]mimetype.<name>.safe:: |
| Shawn O. Pearce | 01cb1190 | 2009-07-15 08:19:01 -0700 | [diff] [blame] | 1857 | + |
| 1858 | If set to true, files with the MIME type `<name>` will be sent as |
| 1859 | direct downloads to the user's browser, rather than being wrapped up |
| 1860 | inside of zipped archives. The type name may be a complete type |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 1861 | name, e.g. `image/gif`, a generic media type, e.g. `image/*`, |
| 1862 | or the wildcard `*/*` to match all types. |
| Shawn O. Pearce | 01cb1190 | 2009-07-15 08:19:01 -0700 | [diff] [blame] | 1863 | + |
| 1864 | By default, false for all MIME types. |
| 1865 | |
| 1866 | Common examples: |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 1867 | ---- |
| 1868 | [mimetype "image/*"] |
| 1869 | safe = true |
| 1870 | |
| 1871 | [mimetype "application/pdf"] |
| 1872 | safe = true |
| 1873 | |
| 1874 | [mimetype "application/msword"] |
| 1875 | safe = true |
| 1876 | |
| 1877 | [mimetype "application/vnd.ms-excel"] |
| 1878 | safe = true |
| 1879 | ---- |
| Shawn O. Pearce | 01cb1190 | 2009-07-15 08:19:01 -0700 | [diff] [blame] | 1880 | |
| Shawn O. Pearce | 5f11b29 | 2010-08-05 17:57:35 -0700 | [diff] [blame] | 1881 | |
| 1882 | [[pack]]Section pack |
| 1883 | ~~~~~~~~~~~~~~~~~~~~ |
| 1884 | Global settings controlling how Gerrit Code Review creates pack |
| 1885 | streams for Git clients running clone, fetch, or pull. Most of these |
| 1886 | variables are per-client request, and thus should be carefully set |
| 1887 | given the expected concurrent request load and available CPU and |
| 1888 | memory resources. |
| 1889 | |
| 1890 | [[pack.deltacompression]]pack.deltacompression:: |
| 1891 | + |
| 1892 | If true, delta compression between objects is enabled. This may |
| 1893 | result in a smaller overall transfer for the client, but requires |
| 1894 | more server memory and CPU time. |
| 1895 | + |
| 1896 | False (off) by default, matching Gerrit Code Review 2.1.4. |
| 1897 | |
| 1898 | [[pack.threads]]pack.threads:: |
| 1899 | + |
| 1900 | Maximum number of threads to use for delta compression (if enabled). |
| 1901 | This is per-client request. If set to 0 then the number of CPUs is |
| 1902 | auto-detected and one thread per CPU is used, per client request. |
| 1903 | + |
| 1904 | By default, 1. |
| 1905 | |
| 1906 | |
| Shawn O. Pearce | 5ad16ea | 2012-05-09 14:24:25 -0700 | [diff] [blame] | 1907 | [[plugins]]Section plugins |
| 1908 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1909 | |
| 1910 | [[plugins.checkFrequency]]plugins.checkFrequency:: |
| 1911 | + |
| 1912 | How often plugins should be examined for new plugins to load, removed |
| 1913 | plugins to be unloaded, or updated plugins to be reloaded. Values can |
| 1914 | be specified using standard time unit abbreviations ('ms', 'sec', |
| 1915 | 'min', etc.). |
| 1916 | + |
| 1917 | If set to 0, automatic plugin reloading is disabled. Administrators |
| 1918 | may force reloading with link:cmd-plugin.html[gerrit plugin reload]. |
| 1919 | + |
| 1920 | Default is 1 minute. |
| 1921 | |
| 1922 | |
| lincoln | 2be1160 | 2010-07-05 10:53:25 -0300 | [diff] [blame] | 1923 | [[receive]]Section receive |
| 1924 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Sasa Zivkov | 59d89c3 | 2011-11-18 15:32:35 +0100 | [diff] [blame] | 1925 | This section is used to set who can execute the 'receive-pack' and |
| 1926 | to limit the maximum Git object size that 'receive-pack' will accept. |
| 1927 | 'receive-pack' is what runs on the server during a user's push or |
| Dave Borowitz | 234734a | 2012-03-01 14:22:29 -0800 | [diff] [blame] | 1928 | repo upload command. It also contains some advanced options for tuning the |
| 1929 | behavior of Gerrit's 'receive-pack' mechanism. |
| lincoln | 2be1160 | 2010-07-05 10:53:25 -0300 | [diff] [blame] | 1930 | |
| 1931 | ---- |
| 1932 | [receive] |
| 1933 | allowGroup = GROUP_ALLOWED_TO_EXECUTE |
| 1934 | allowGroup = YET_ANOTHER_GROUP_ALLOWED_TO_EXECUTE |
| Sasa Zivkov | 59d89c3 | 2011-11-18 15:32:35 +0100 | [diff] [blame] | 1935 | maxObjectSizeLimit = 40 m |
| lincoln | 2be1160 | 2010-07-05 10:53:25 -0300 | [diff] [blame] | 1936 | ---- |
| 1937 | |
| 1938 | [[receive.allowGroup]]receive.allowGroup:: |
| 1939 | + |
| 1940 | Name of the groups of users that are allowed to execute |
| 1941 | 'receive-pack' on the server. One or more groups can be set. |
| 1942 | + |
| 1943 | If no groups are added, any user will be allowed to execute |
| 1944 | 'receive-pack' on the server. |
| 1945 | |
| Sasa Zivkov | 59d89c3 | 2011-11-18 15:32:35 +0100 | [diff] [blame] | 1946 | [[receive.maxObjectSizeLimit]]receive.maxObjectSizeLimit:: |
| 1947 | + |
| 1948 | Maximum allowed Git object size that 'receive-pack' will accept. |
| 1949 | If an object is larger than the given size the pack-parsing will abort |
| 1950 | and the push operation will fail. If set to zero then there is no |
| 1951 | limit. |
| 1952 | + |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 1953 | Gerrit administrators can use this setting to prevent developers |
| Sasa Zivkov | 59d89c3 | 2011-11-18 15:32:35 +0100 | [diff] [blame] | 1954 | from pushing objects which are too large to Gerrit. |
| 1955 | + |
| 1956 | Default is zero. |
| 1957 | + |
| 1958 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 1959 | |
| Dave Borowitz | 234734a | 2012-03-01 14:22:29 -0800 | [diff] [blame] | 1960 | [[receive.threadPoolSize]]receive.threadPoolSize:: |
| 1961 | + |
| 1962 | Maximum size of the thread pool in which the change data in received packs is |
| 1963 | processed. |
| 1964 | + |
| 1965 | Defaults to the number of available CPUs according to the Java runtime. |
| 1966 | |
| Shawn O. Pearce | c545c09 | 2012-07-27 16:38:55 -0700 | [diff] [blame] | 1967 | [[receive.changeUpdateThreads]]receive.changeUpdateThreads:: |
| 1968 | + |
| 1969 | Number of threads to perform change creation or patch set updates |
| 1970 | concurrently. Each thread uses its own database connection from |
| 1971 | the database connection pool, and if all threads are busy then |
| 1972 | main receive thread will also perform a change creation or patch |
| 1973 | set update. |
| 1974 | + |
| 1975 | Defaults to 1, using only the main receive thread. This feature is for |
| 1976 | databases with very high latency that can benfit from concurrent |
| 1977 | operations when multiple changes are impacted at once. |
| 1978 | |
| Dave Borowitz | 1c40136 | 2012-03-02 17:39:17 -0800 | [diff] [blame] | 1979 | [[receive.timeout]]receive.timeout:: |
| 1980 | + |
| Shawn O. Pearce | 00dd12d | 2012-03-12 15:52:11 -0700 | [diff] [blame] | 1981 | Overall timeout on the time taken to process the change data in |
| 1982 | received packs. Only includes the time processing Gerrit changes |
| 1983 | and updating references, not the time to index the pack. Values can |
| 1984 | be specified using standard time unit abbreviations ('ms', 'sec', |
| 1985 | 'min', etc.). |
| Dave Borowitz | 1c40136 | 2012-03-02 17:39:17 -0800 | [diff] [blame] | 1986 | + |
| Shawn O. Pearce | 00dd12d | 2012-03-12 15:52:11 -0700 | [diff] [blame] | 1987 | Default is 2 minutes. If no unit is specified, millisconds |
| 1988 | is assumed. |
| Dave Borowitz | 1c40136 | 2012-03-02 17:39:17 -0800 | [diff] [blame] | 1989 | |
| lincoln | 2be1160 | 2010-07-05 10:53:25 -0300 | [diff] [blame] | 1990 | |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 1991 | [[repository]]Section repository |
| 1992 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1993 | Repositories in this sense are the same as projects. |
| 1994 | |
| Shawn O. Pearce | 897d921 | 2011-06-16 16:59:59 -0700 | [diff] [blame] | 1995 | In the following example configuration `Registered Users` is set |
| 1996 | to be the default owner of new projects. |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 1997 | |
| 1998 | ---- |
| 1999 | [repository "*"] |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 2000 | ownerGroup = Registered Users |
| 2001 | ---- |
| 2002 | |
| 2003 | [NOTE] |
| 2004 | Currently only the repository name `*` is supported. |
| 2005 | This is a wildcard designating all repositories. |
| 2006 | |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 2007 | [[repository.name.ownerGroup]]repository.<name>.ownerGroup:: |
| 2008 | + |
| 2009 | A name of a group which exists in the database. Zero, one or many |
| 2010 | groups are allowed. Each on its own line. Groups which don't exist |
| 2011 | in the database are ignored. |
| Hugo Josefson | 072b470 | 2010-04-21 19:27:11 +0200 | [diff] [blame] | 2012 | |
| Shawn O. Pearce | 94860ee | 2011-09-29 13:11:08 -0700 | [diff] [blame] | 2013 | [[rules]]Section rules |
| 2014 | ~~~~~~~~~~~~~~~~~~~~~~ |
| 2015 | |
| 2016 | [[rules.enable]]rules.enable:: |
| 2017 | + |
| 2018 | If true, Gerrit will load and excute 'rules.pl' files in each |
| 2019 | project's refs/meta/config branch, if present. When set to false, |
| 2020 | only the default internal rules will be used. |
| 2021 | + |
| 2022 | Default is true, to execute project specific rules. |
| 2023 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 2024 | [[sendemail]]Section sendemail |
| 2025 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 2026 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2027 | [[sendemail.enable]]sendemail.enable:: |
| Shawn O. Pearce | 2e4573b | 2009-06-02 09:09:50 -0700 | [diff] [blame] | 2028 | + |
| 2029 | If false Gerrit will not send email messages, for any reason, |
| 2030 | and all other properties of section sendemail are ignored. |
| 2031 | + |
| 2032 | By default, true, allowing notifications to be sent. |
| 2033 | |
| Shawn O. Pearce | 5c31bd7 | 2009-09-10 18:13:33 -0700 | [diff] [blame] | 2034 | [[sendemail.from]]sendemail.from:: |
| 2035 | + |
| 2036 | Designates what name and address Gerrit will place in the From |
| 2037 | field of any generated email messages. The supported values are: |
| 2038 | + |
| 2039 | * `USER` |
| 2040 | + |
| 2041 | Gerrit will set the From header to use the current user's |
| 2042 | Full Name and Preferred Email. This may cause messsages to be |
| 2043 | classified as spam if the user's domain has SPF or DKIM enabled |
| 2044 | and <<sendemail.smtpServer,sendemail.smtpServer>> is not a trusted |
| 2045 | relay for that domain. |
| 2046 | + |
| 2047 | * `MIXED` |
| 2048 | + |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 2049 | Shorthand for `${user} (Code Review) <review@example.com>` where |
| Shawn O. Pearce | 5c31bd7 | 2009-09-10 18:13:33 -0700 | [diff] [blame] | 2050 | `review@example.com` is the same as <<user.email,user.email>>. |
| 2051 | See below for a description of how the replacement is handled. |
| 2052 | + |
| 2053 | * `SERVER` |
| 2054 | + |
| 2055 | Gerrit will set the From header to the same name and address |
| 2056 | it records in any commits Gerrit creates. This is set by |
| 2057 | <<user.name,user.name>> and <<user.email,user.email>>, or guessed |
| 2058 | from the local operating system. |
| 2059 | + |
| 2060 | * 'Code Review' `<`'review'`@`'example.com'`>` |
| 2061 | + |
| 2062 | If set to a name and email address in brackets, Gerrit will use |
| 2063 | this name and email address for any messages, overriding the name |
| 2064 | that may have been selected for commits by user.name and user.email. |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 2065 | Optionally, the name portion may contain the placeholder `${user}`, |
| Shawn O. Pearce | 5c31bd7 | 2009-09-10 18:13:33 -0700 | [diff] [blame] | 2066 | which is replaced by the Full Name of the current user. |
| 2067 | |
| 2068 | + |
| 2069 | By default, MIXED. |
| 2070 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2071 | [[sendemail.smtpServer]]sendemail.smtpServer:: |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 2072 | + |
| 2073 | Hostname (or IP address) of a SMTP server that will relay |
| 2074 | messages generated by Gerrit to end users. |
| 2075 | + |
| 2076 | By default, 127.0.0.1 (aka localhost). |
| 2077 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2078 | [[sendemail.smtpServerPort]]sendemail.smtpServerPort:: |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 2079 | + |
| 2080 | Port number of the SMTP server in sendemail.smtpserver. |
| 2081 | + |
| Shawn O. Pearce | 6e9a83f | 2009-11-02 10:30:48 -0800 | [diff] [blame] | 2082 | By default, 25, or 465 if smtpEncryption is 'ssl'. |
| 2083 | |
| 2084 | [[sendemail.smtpEncryption]]sendemail.smtpEncryption:: |
| 2085 | + |
| 2086 | Specify the encryption to use, either 'ssl' or 'tls'. |
| 2087 | + |
| 2088 | By default, 'none', indicating no encryption is used. |
| 2089 | |
| 2090 | [[sendemail.sslVerify]]sendemail.sslVerify:: |
| 2091 | + |
| 2092 | If false and sendemail.smtpEncryption is 'ssl' or 'tls', Gerrit |
| 2093 | will not verify the server certificate when it connects to send |
| 2094 | an email message. |
| 2095 | + |
| 2096 | By default, true, requiring the certificate to be verified. |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 2097 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2098 | [[sendemail.smtpUser]]sendemail.smtpUser:: |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 2099 | + |
| 2100 | User name to authenticate with, if required for relay. |
| 2101 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2102 | [[sendemail.smtpPass]]sendemail.smtpPass:: |
| Shawn O. Pearce | b0572c6 | 2009-06-01 14:18:22 -0700 | [diff] [blame] | 2103 | + |
| 2104 | Password for the account named by sendemail.smtpUser. |
| 2105 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2106 | [[sendemail.allowrcpt]]sendemail.allowrcpt:: |
| Shawn O. Pearce | 219a8ee | 2009-06-01 18:13:57 -0700 | [diff] [blame] | 2107 | + |
| 2108 | If present, each value adds one entry to the whitelist of email |
| 2109 | addresses that Gerrit can send email to. If set to a complete |
| 2110 | email address, that one address is added to the white list. |
| 2111 | If set to a domain name, any address at that domain can receive |
| 2112 | email from Gerrit. |
| 2113 | + |
| 2114 | By default, unset, permitting delivery to any email address. |
| 2115 | |
| Shawn O. Pearce | 02aacbc | 2012-06-12 13:44:22 -0700 | [diff] [blame] | 2116 | [[sendemail.includeDiff]]sendemail.includeDiff:: |
| 2117 | + |
| Bruce Zu | eb00ff3 | 2012-11-27 17:38:10 +0800 | [diff] [blame] | 2118 | If true, new change emails and merged change emails from Gerrit |
| 2119 | will include the complete unified diff of the change. |
| 2120 | Variable maxmimumDiffSize places an upper limit on how large the |
| 2121 | email can get when this option is enabled. |
| Shawn O. Pearce | 02aacbc | 2012-06-12 13:44:22 -0700 | [diff] [blame] | 2122 | + |
| 2123 | By default, false. |
| 2124 | |
| Shawn O. Pearce | 28a950b | 2012-06-12 14:36:34 -0700 | [diff] [blame] | 2125 | [[sendemail.maximumDiffSize]]sendemail.maximumDiffSize:: |
| 2126 | + |
| 2127 | Largest size of unified diff output to include in an email. When |
| 2128 | the diff exceeds this size the file paths will be listed instead. |
| 2129 | Standard byte unit suffixes are supported. |
| 2130 | + |
| 2131 | By default, 256 KiB. |
| 2132 | |
| Alex Blewitt | 9cca740 | 2011-02-11 01:39:30 +0000 | [diff] [blame] | 2133 | [[sendemail.importance]]sendemail.importance:: |
| 2134 | + |
| 2135 | If present, emails sent from Gerrit will have the given level |
| 2136 | of importance. Valid values include 'high' and 'low', which |
| 2137 | email clients will render in different ways. |
| 2138 | + |
| 2139 | By default, unset, so no Importance header is generated. |
| 2140 | |
| 2141 | [[sendemail.expiryDays]]sendemail.expiryDays:: |
| 2142 | + |
| 2143 | If present, emails sent from Gerrit will expire after the given |
| 2144 | number of days. This will add the Expiry-Date header and |
| 2145 | email clients may expire or expunge mails whose Expiry-Date |
| 2146 | header is in the past. This should be a positive non-zero |
| 2147 | number indicating how many days in the future the mails |
| 2148 | should expire. |
| 2149 | + |
| 2150 | By default, unset, so no Expiry-Date header is generated. |
| 2151 | |
| Shawn O. Pearce | dba9764 | 2011-09-07 20:12:31 -0700 | [diff] [blame] | 2152 | |
| 2153 | [[site]]Section site |
| 2154 | ~~~~~~~~~~~~~~~~~~~~ |
| 2155 | |
| 2156 | [[site.checkUserAgent]]site.checkUserAgent:: |
| 2157 | + |
| 2158 | If true the server checks the User-Agent HTTP header and sends the |
| 2159 | correct JavaScript to the client as part of the initial page load. |
| 2160 | This usually reduces a round-trip for the client, allowing the UI to |
| 2161 | start more quickly. If false, a tiny JavaScript loader is sent to the |
| 2162 | client instead to determine the correct code to use. Default is true. |
| 2163 | |
| 2164 | [[site.refreshHeaderFooter]]site.refreshHeaderFooter:: |
| 2165 | + |
| 2166 | If true the server checks the site header, footer and CSS files for |
| 2167 | updated versions. If false, a server restart is required to change |
| 2168 | any of these resources. Default is true, allowing automatic reloads. |
| 2169 | |
| Shawn O. Pearce | 6bd04fd | 2012-04-05 14:39:22 -0700 | [diff] [blame] | 2170 | [[site.enableDeprecatedQuery]]site.enableDeprecatedQuery:: |
| 2171 | + |
| 2172 | If true the deprecated `/query` URL is available to return JSON |
| 2173 | and text results for changes. If false, the URL is disabled and |
| 2174 | returns 404 to clients. Default is true, enabling `/query`. |
| 2175 | |
| Sasa Zivkov | de980a4 | 2012-06-14 14:57:53 +0200 | [diff] [blame] | 2176 | [[site.upgradeSchemaOnStartup]]site.upgradeSchemaOnStartup:: |
| 2177 | + |
| 2178 | Control whether schema upgrade should be done on Gerrit startup. The following |
| 2179 | values are supported: |
| 2180 | + |
| 2181 | * `OFF` |
| 2182 | + |
| 2183 | No automatic schema upgrade on startup. |
| 2184 | + |
| 2185 | * `AUTO` |
| 2186 | + |
| 2187 | Perform schema migration on startup, if necessary. If, as a result of |
| 2188 | schema migration, there would be any unused database objects they will |
| 2189 | be dropped automatically. |
| 2190 | + |
| 2191 | * `AUTO_NO_PRUNE` |
| 2192 | + |
| 2193 | Like `AUTO` but unused database objects will not be pruned. |
| 2194 | |
| 2195 | + |
| 2196 | The default is `OFF`. |
| 2197 | |
| Shawn O. Pearce | 521380a | 2012-05-11 14:57:56 -0700 | [diff] [blame] | 2198 | [[ssh-alias]] Section ssh-alias |
| 2199 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2200 | |
| 2201 | Variables in section ssh-alias permit the site administrator to alias |
| 2202 | another command from Gerrit or a plugin into the `gerrit` command |
| 2203 | namespace. To alias `replication start` to `gerrit replicate`: |
| 2204 | |
| 2205 | ---- |
| 2206 | [ssh-alias] |
| 2207 | replicate = replication start |
| 2208 | ---- |
| Shawn O. Pearce | dba9764 | 2011-09-07 20:12:31 -0700 | [diff] [blame] | 2209 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 2210 | [[sshd]] Section sshd |
| Shawn O. Pearce | a758fef | 2009-08-19 08:29:32 -0700 | [diff] [blame] | 2211 | ~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 9410f2c | 2009-05-14 10:26:47 -0700 | [diff] [blame] | 2212 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2213 | [[sshd.listenAddress]]sshd.listenAddress:: |
| Shawn O. Pearce | 1d3cb444 | 2009-05-30 14:03:31 -0700 | [diff] [blame] | 2214 | + |
| 2215 | Specifies the local addresses the internal SSHD should listen |
| 2216 | for connections on. The following forms may be used to specify |
| 2217 | an address. In any form, `:'port'` may be omitted to use the |
| 2218 | default of 29418. |
| 2219 | + |
| 2220 | * 'hostname':'port' (for example `review.example.com:29418`) |
| 2221 | * 'IPv4':'port' (for example `10.0.0.1:29418`) |
| 2222 | * ['IPv6']:'port' (for example `[ff02::1]:29418`) |
| Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 2223 | * *:'port' (for example `*:29418`) |
| Shawn O. Pearce | 1d3cb444 | 2009-05-30 14:03:31 -0700 | [diff] [blame] | 2224 | |
| 2225 | + |
| 2226 | If multiple values are supplied, the daemon will listen on all |
| 2227 | of them. |
| 2228 | + |
| Shawn O. Pearce | 6af6f5f | 2010-06-08 17:38:43 -0700 | [diff] [blame] | 2229 | To disable the internal SSHD, set listenAddress to `off`. |
| 2230 | + |
| Shawn O. Pearce | 1d3cb444 | 2009-05-30 14:03:31 -0700 | [diff] [blame] | 2231 | By default, *:29418. |
| 2232 | |
| James Y Knight | 910bd86 | 2011-01-11 20:05:56 -0500 | [diff] [blame] | 2233 | [[sshd.advertisedAddress]]sshd.advertisedAddress:: |
| 2234 | + |
| 2235 | Specifies the addresses clients should be told to connect to. |
| 2236 | This may differ from sshd.listenAddress if a firewall based port |
| 2237 | redirector is being used, making Gerrit appear to answer on port |
| 2238 | 22. The following forms may be used to specify an address. In any |
| 2239 | form, `:'port'` may be omitted to use the default SSH port of 22. |
| 2240 | + |
| 2241 | * 'hostname':'port' (for example `review.example.com:22`) |
| 2242 | * 'IPv4':'port' (for example `10.0.0.1:29418`) |
| 2243 | * ['IPv6']:'port' (for example `[ff02::1]:29418`) |
| 2244 | |
| 2245 | + |
| 2246 | If multiple values are supplied, the daemon will advertise all |
| 2247 | of them. |
| 2248 | + |
| 2249 | By default, sshd.listenAddress. |
| 2250 | |
| Shawn O. Pearce | 149238a | 2009-09-10 12:25:20 -0700 | [diff] [blame] | 2251 | [[sshd.reuseAddress]]sshd.reuseAddress:: |
| Shawn O. Pearce | 9410f2c | 2009-05-14 10:26:47 -0700 | [diff] [blame] | 2252 | + |
| 2253 | If true, permits the daemon to bind to the port even if the port |
| 2254 | is already in use. If false, the daemon ensures the port is not |
| 2255 | in use before starting. Busy sites may need to set this to true |
| 2256 | to permit fast restarts. |
| 2257 | + |
| 2258 | By default, true. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 2259 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2260 | [[sshd.tcpKeepAlive]]sshd.tcpKeepAlive:: |
| Shawn O. Pearce | fc9081f | 2009-05-14 10:26:59 -0700 | [diff] [blame] | 2261 | + |
| 2262 | If true, enables TCP keepalive messages to the other side, so |
| 2263 | the daemon can terminate connections if the peer disappears. |
| 2264 | + |
| 2265 | By default, true. |
| 2266 | |
| Shawn O. Pearce | 1a4580b | 2009-11-19 17:37:10 -0800 | [diff] [blame] | 2267 | [[sshd.threads]]sshd.threads:: |
| 2268 | + |
| 2269 | Number of threads to use when executing SSH command requests. |
| 2270 | If additional requests are received while all threads are busy they |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 2271 | are queued and serviced in a first-come-first-served order. |
| Shawn O. Pearce | 1a4580b | 2009-11-19 17:37:10 -0800 | [diff] [blame] | 2272 | + |
| 2273 | By default, 1.5x the number of CPUs available to the JVM. |
| 2274 | |
| Nico Sallembien | fc53f7f | 2010-05-18 16:40:10 -0700 | [diff] [blame] | 2275 | [[sshd.batchThreads]]sshd.batchThreads:: |
| 2276 | + |
| 2277 | Number of threads to allocate for SSH command requests from |
| Fredrik Luthander | 4684302 | 2012-03-13 16:11:02 +0100 | [diff] [blame] | 2278 | link:access-control.html#non-interactive_users[non-interactive users]. |
| 2279 | If equals to 0, then all non-interactive requests are executed in the same |
| 2280 | queue as interactive requests. |
| Nico Sallembien | fc53f7f | 2010-05-18 16:40:10 -0700 | [diff] [blame] | 2281 | + |
| 2282 | Any other value will remove the number of threads from the queue |
| 2283 | allocated to interactive users, and create a separate thread pool |
| 2284 | of the requested size, which will be used to run commands from |
| 2285 | non-interactive users. |
| 2286 | + |
| 2287 | If the number of threads requested for non-interactive users is larger |
| 2288 | than the total number of threads allocated in sshd.threads, then the |
| 2289 | value of sshd.threads is increased to accomodate the requested value. |
| 2290 | + |
| 2291 | By default, 0. |
| 2292 | |
| Kenny Root | 15ac1b8 | 2010-02-24 00:29:20 -0800 | [diff] [blame] | 2293 | [[sshd.streamThreads]]sshd.streamThreads:: |
| 2294 | + |
| 2295 | Number of threads to use when formatting events to asynchronous |
| 2296 | streaming clients. Event formatting is multiplexed onto this thread |
| 2297 | pool by a simple FIFO scheduling system. |
| 2298 | + |
| 2299 | By default, 1 plus the number of CPUs available to the JVM. |
| 2300 | |
| Edwin Kempin | b5df3b8 | 2011-10-10 11:31:14 +0200 | [diff] [blame] | 2301 | [[sshd.commandStartThreads]]sshd.commandStartThreads:: |
| Shawn O. Pearce | d629655 | 2011-05-15 13:56:30 -0700 | [diff] [blame] | 2302 | + |
| 2303 | Number of threads used to parse a command line submitted by a client |
| 2304 | over SSH for execution, create the internal data structures used by |
| 2305 | that command, and schedule it for execution on another thread. |
| 2306 | + |
| 2307 | By default, 2. |
| 2308 | |
| Shawn O. Pearce | 8a0bf36 | 2010-11-05 17:49:41 -0700 | [diff] [blame] | 2309 | [[sshd.maxAuthTries]]sshd.maxAuthTries:: |
| 2310 | + |
| 2311 | Maximum number of authentication attempts before the server |
| 2312 | disconnects the client. Each public key that a client has loaded |
| 2313 | into its local agent counts as one auth request. Users can work |
| 2314 | around the server's limit by loading less keys into their agent, |
| 2315 | or selecting a specific key in their `~/.ssh/config` file with |
| 2316 | the `IdentityFile` option. |
| 2317 | + |
| 2318 | By default, 6. |
| 2319 | |
| 2320 | [[sshd.loginGraceTime]]sshd.loginGraceTime:: |
| 2321 | + |
| 2322 | Time in seconds that a client has to authenticate before the server |
| 2323 | automatically terminates their connection. Values should use common |
| 2324 | unit suffixes to express their setting: |
| 2325 | + |
| 2326 | * s, sec, second, seconds |
| 2327 | * m, min, minute, minutes |
| 2328 | * h, hr, hour, hours |
| 2329 | * d, day, days |
| 2330 | |
| 2331 | + |
| 2332 | By default, 2 minutes. |
| 2333 | |
| 2334 | [[sshd.maxConnectionsPerUser]]sshd.maxConnectionsPerUser:: |
| 2335 | + |
| 2336 | Maximum number of concurrent SSH sessions that a user account |
| 2337 | may open at one time. This is the number of distinct SSH logins |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 2338 | that each user may have active at one time, and is not related to |
| Shawn O. Pearce | 8a0bf36 | 2010-11-05 17:49:41 -0700 | [diff] [blame] | 2339 | the number of commands a user may issue over a single connection. |
| 2340 | If set to 0, there is no limit. |
| 2341 | + |
| 2342 | By default, 64. |
| 2343 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2344 | [[sshd.cipher]]sshd.cipher:: |
| Shawn O. Pearce | 0bf2f52 | 2009-05-14 11:02:03 -0700 | [diff] [blame] | 2345 | + |
| 2346 | Available ciphers. To permit multiple ciphers, specify multiple |
| 2347 | `sshd.cipher` keys in the configuration file, one cipher name |
| 2348 | per key. Cipher names starting with `+` are enabled in addition |
| 2349 | to the default ciphers, cipher names starting with `-` are removed |
| 2350 | from the default cipher set. |
| 2351 | + |
| 2352 | Supported ciphers: aes128-cbc, aes128-cbc, aes256-cbc, blowfish-cbc, |
| 2353 | 3des-cbc, none. |
| 2354 | + |
| 2355 | By default, all supported ciphers except `none` are available. |
| 2356 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2357 | [[sshd.mac]]sshd.mac:: |
| Shawn O. Pearce | 0bf2f52 | 2009-05-14 11:02:03 -0700 | [diff] [blame] | 2358 | + |
| 2359 | Available MAC (message authentication code) algorithms. To permit |
| 2360 | multiple algorithms, specify multiple `sshd.mac` keys in the |
| 2361 | configuration file, one MAC per key. MAC names starting with `+` |
| 2362 | are enabled in addition to the default MACs, MAC names starting with |
| 2363 | `-` are removed from the default MACs. |
| 2364 | + |
| 2365 | Supported MACs: hmac-md5, hmac-md5-96, hmac-sha1, hmac-sha1-96. |
| 2366 | + |
| 2367 | By default, all supported MACs are available. |
| 2368 | |
| Shawn O. Pearce | 07bd6fb | 2011-04-29 19:15:47 -0700 | [diff] [blame] | 2369 | [[suggest]] Section suggest |
| 2370 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2371 | |
| Dave Borowitz | 1ae8c53 | 2012-03-09 18:39:40 -0800 | [diff] [blame] | 2372 | [[suggest.accounts]]suggest.accounts:: |
| Shawn O. Pearce | 07bd6fb | 2011-04-29 19:15:47 -0700 | [diff] [blame] | 2373 | + |
| Dave Borowitz | 45baa89 | 2012-02-23 16:43:05 -0800 | [diff] [blame] | 2374 | If `true`, visible user accounts (according to the value of |
| 2375 | `accounts.visibility`) will be offered as completion suggestions |
| 2376 | when adding a reviewer to a change, or a user to a group. |
| Shawn O. Pearce | 07bd6fb | 2011-04-29 19:15:47 -0700 | [diff] [blame] | 2377 | + |
| Dave Borowitz | 45baa89 | 2012-02-23 16:43:05 -0800 | [diff] [blame] | 2378 | If `false`, account suggestion is disabled. |
| Shawn O. Pearce | 07bd6fb | 2011-04-29 19:15:47 -0700 | [diff] [blame] | 2379 | + |
| Dave Borowitz | 45baa89 | 2012-02-23 16:43:05 -0800 | [diff] [blame] | 2380 | Older configurations may also have one of the `accounts.visibility` |
| 2381 | values for this field, including `OFF` as a synonym for `NONE`. If |
| 2382 | `accounts.visibility` is also set, that value overrides this one; |
| 2383 | otherwise, this value applies to both `suggest.accounts` and |
| 2384 | `accounts.visibility`. |
| Edwin Kempin | 4248881 | 2011-05-20 03:11:43 +0200 | [diff] [blame] | 2385 | + |
| Dave Borowitz | 45baa89 | 2012-02-23 16:43:05 -0800 | [diff] [blame] | 2386 | New configurations should prefer the boolean value for this field |
| 2387 | and an enum value for `accounts.visibility`. |
| Shawn O. Pearce | 07bd6fb | 2011-04-29 19:15:47 -0700 | [diff] [blame] | 2388 | |
| Edwin Kempin | f957dc2 | 2012-10-19 20:41:18 +0200 | [diff] [blame] | 2389 | [[suggest.from]]suggest.from:: |
| 2390 | + |
| 2391 | The number of characters that a user must have typed before suggestions |
| 2392 | are provided. If set to 0, suggestions are always provided. |
| 2393 | + |
| 2394 | By default 0. |
| 2395 | |
| Shawn O. Pearce | 2ba3ab4 | 2010-02-25 12:10:10 -0800 | [diff] [blame] | 2396 | [[theme]] Section theme |
| 2397 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| 2398 | |
| 2399 | [[theme.backgroundColor]]theme.backgroundColor:: |
| 2400 | + |
| 2401 | Background color for the page, and major data tables like the all |
| 2402 | open changes table or the account dashboard. The value must be a |
| 2403 | valid HTML hex color code, or standard color name. |
| 2404 | + |
| Chad Horohoe | bbdf748 | 2012-11-13 18:23:15 -0800 | [diff] [blame] | 2405 | By default white, `FFFFFF`. |
| Shawn O. Pearce | 2ba3ab4 | 2010-02-25 12:10:10 -0800 | [diff] [blame] | 2406 | |
| 2407 | [[theme.topMenuColor]]theme.topMenuColor:: |
| 2408 | + |
| 2409 | This is the color of the main menu bar at the top of the page. |
| 2410 | The value must be a valid HTML hex color code, or standard color |
| Chad Horohoe | bbdf748 | 2012-11-13 18:23:15 -0800 | [diff] [blame] | 2411 | name. |
| 2412 | + |
| 2413 | By default white, `FFFFFF`. |
| Shawn O. Pearce | 2ba3ab4 | 2010-02-25 12:10:10 -0800 | [diff] [blame] | 2414 | |
| 2415 | [[theme.textColor]]theme.textColor:: |
| 2416 | + |
| 2417 | Text color for the page, and major data tables like the all |
| 2418 | open changes table or the account dashboard. The value must be a |
| 2419 | valid HTML hex color code, or standard color name. |
| 2420 | + |
| Chad Horohoe | bbdf748 | 2012-11-13 18:23:15 -0800 | [diff] [blame] | 2421 | By default dark grey, `353535`. |
| Shawn O. Pearce | 2ba3ab4 | 2010-02-25 12:10:10 -0800 | [diff] [blame] | 2422 | |
| 2423 | [[theme.trimColor]]theme.trimColor:: |
| 2424 | + |
| 2425 | Primary color used as a background color behind text. This is |
| 2426 | the color of the main menu bar at the top, of table headers, |
| 2427 | and of major UI areas that we want to offset from other portions |
| 2428 | of the page. The value must be a valid HTML hex color code, or |
| 2429 | standard color name. |
| 2430 | + |
| Chad Horohoe | bbdf748 | 2012-11-13 18:23:15 -0800 | [diff] [blame] | 2431 | By default a light grey, `EEEEEE`. |
| Shawn O. Pearce | 2ba3ab4 | 2010-02-25 12:10:10 -0800 | [diff] [blame] | 2432 | |
| 2433 | [[theme.selectionColor]]theme.selectionColor:: |
| 2434 | + |
| 2435 | Background color used within a trimColor area to denote the currently |
| 2436 | selected tab, or the background color used in a table to denote the |
| 2437 | currently selected row. The value must be a valid HTML hex color |
| 2438 | code, or standard color name. |
| 2439 | + |
| Chad Horohoe | bbdf748 | 2012-11-13 18:23:15 -0800 | [diff] [blame] | 2440 | By default a pale blue, `D8EDF9`. |
| Shawn O. Pearce | 2ba3ab4 | 2010-02-25 12:10:10 -0800 | [diff] [blame] | 2441 | |
| Andrew Hutchings | cfd7abb | 2012-06-29 10:57:05 +0100 | [diff] [blame] | 2442 | [[theme.changeTableOutdatedColor]]theme.changeTableOutdatedColor:: |
| 2443 | + |
| 2444 | Background color used for patch outdated messages. The value must be |
| 2445 | a valid HTML hex color code, or standard color name. |
| 2446 | + |
| Edwin Kempin | b034733 | 2012-07-17 10:14:32 +0200 | [diff] [blame] | 2447 | By default a shade of red, `F08080`. |
| Andrew Hutchings | cfd7abb | 2012-06-29 10:57:05 +0100 | [diff] [blame] | 2448 | |
| 2449 | [[theme.tableOddRowColor]]theme.tableOddRowColor:: |
| 2450 | + |
| 2451 | Background color for tables such as lists of open reviews for odd |
| 2452 | rows. This is so you can have a different color for odd and even |
| 2453 | rows of the table. The value must be a valid HTML hex color code, |
| 2454 | or standard color name. |
| 2455 | + |
| 2456 | By default transparent. |
| 2457 | |
| 2458 | [[theme.tableEvenRowColor]]theme.tableEvenRowColor:: |
| 2459 | + |
| 2460 | Background color for tables such as lists of open reviews for even |
| 2461 | rows. This is so you can have a different color for odd and even |
| 2462 | rows of the table. The value must be a valid HTML hex color code, |
| 2463 | or standard color name. |
| 2464 | + |
| 2465 | By default transparent. |
| 2466 | |
| Shawn O. Pearce | a83bb1c | 2011-05-20 08:46:48 -0700 | [diff] [blame] | 2467 | A different theme may be used for signed-in vs. signed-out user status |
| 2468 | by using the "signed-in" and "signed-out" theme sections. Variables |
| 2469 | not specified in a section are inherited from the default theme. |
| 2470 | |
| 2471 | ---- |
| 2472 | [theme] |
| 2473 | backgroundColor = FFFFFF |
| 2474 | [theme "signed-in"] |
| 2475 | backgroundColor = C0C0C0 |
| 2476 | [theme "signed-out"] |
| 2477 | backgroundColor = 00FFFF |
| 2478 | ---- |
| 2479 | |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 2480 | [[trackingid]] Section trackingid |
| Shawn O. Pearce | 91763a0 | 2010-06-16 15:39:33 -0700 | [diff] [blame] | 2481 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 2482 | |
| Shawn O. Pearce | e800b1e | 2010-06-16 17:33:43 -0700 | [diff] [blame] | 2483 | Tagged footer lines containing references to external |
| 2484 | tracking systems, parsed out of the commit message and |
| 2485 | saved in Gerrit's database. After making changes to |
| 2486 | this section, existing changes must be reindexed with the |
| 2487 | link:pgm-ScanTrackingIds.html[ScanTrackingIds] program. |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 2488 | |
| Edwin Kempin | bb421f1 | 2011-08-25 11:19:00 +0200 | [diff] [blame] | 2489 | The tracking ids are searchable using tr:<tracking id> or |
| Shawn O. Pearce | 91763a0 | 2010-06-16 15:39:33 -0700 | [diff] [blame] | 2490 | bug:<tracking id>. |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 2491 | |
| 2492 | ---- |
| 2493 | [trackingid "jira-bug"] |
| 2494 | footer = Bugfix: |
| 2495 | match = JRA\\d{2,8} |
| 2496 | system = JIRA |
| 2497 | |
| 2498 | [trackingid "jira-feature"] |
| 2499 | footer = Feature |
| 2500 | match = JRA(\\d{2,8}) |
| 2501 | system = JIRA |
| 2502 | ---- |
| 2503 | |
| 2504 | [[trackingid.name.footer]]trackingid.<name>.footer:: |
| 2505 | + |
| 2506 | A prefix tag that identify the footer line to parse for tracking ids. |
| Kevin Degi | 9af42ea | 2011-08-01 15:54:42 -0600 | [diff] [blame] | 2507 | Several trackingid entries can have the same footer tag. A single |
| 2508 | trackingid entry can have multiple footer tags. If multiple footer |
| 2509 | tags are specified, each tag will be parsed separately. |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 2510 | (the trailing ":" is optional) |
| 2511 | |
| 2512 | [[trackingid.name.match]]trackingid.<name>.match:: |
| 2513 | + |
| Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 2514 | A link:http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html[standard |
| 2515 | Java regular expression (java.util.regex)] used to match the |
| 2516 | external tracking id part of the footer line. The match can |
| 2517 | result in several entries in the DB. If grouping is used in the |
| 2518 | regex the first group will be interpreted as the tracking id. |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 2519 | Tracking ids longer than 20 characters will be ignored. |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 2520 | + |
| 2521 | The configuration file parser eats one level of backslashes, so the |
| 2522 | character class `\s` requires `\\s` in the configuration file. The |
| 2523 | parser also terminates the line at the first `#`, so a match |
| 2524 | expression containing # must be wrapped in double quotes. |
| 2525 | |
| 2526 | [[trackingid.name.system]]trackingid.<name>.system:: |
| 2527 | + |
| David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 2528 | The name of the external tracking system (maximum 10 characters). |
| Goran Lungberg | 04132a1 | 2010-06-15 17:20:37 -0700 | [diff] [blame] | 2529 | It is possible to have several trackingid entries for the same |
| 2530 | tracking system. |
| 2531 | |
| Shawn O. Pearce | 6e4dfdd | 2010-05-12 17:26:08 -0700 | [diff] [blame] | 2532 | [[transfer]] Section transfer |
| 2533 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2534 | |
| 2535 | [[transfer.timeout]]transfer.timeout:: |
| 2536 | + |
| 2537 | Number of seconds to wait for a single network read or write |
| 2538 | to complete before giving up and declaring the remote side is |
| 2539 | not responding. If 0, there is no timeout, and this server will |
| 2540 | wait indefinitely for a transfer to finish. |
| 2541 | + |
| 2542 | A timeout should be large enough to mostly transfer the objects to |
| 2543 | the other side. 1 second may be too small for larger projects, |
| 2544 | especially over a WAN link, while 10-30 seconds is a much more |
| 2545 | reasonable timeout value. |
| 2546 | + |
| 2547 | Defaults to 0 seconds, wait indefinitely. |
| 2548 | |
| lincoln | 2be1160 | 2010-07-05 10:53:25 -0300 | [diff] [blame] | 2549 | |
| 2550 | [[upload]]Section upload |
| Remy Bohmer | 203eea3 | 2012-02-19 21:21:36 +0100 | [diff] [blame] | 2551 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| lincoln | 2be1160 | 2010-07-05 10:53:25 -0300 | [diff] [blame] | 2552 | Sets the group of users allowed to execute 'upload-pack' on the |
| 2553 | server, 'upload-pack' is what runs on the server during a user's |
| 2554 | fetch, clone or repo sync command. |
| 2555 | |
| 2556 | ---- |
| 2557 | [upload] |
| 2558 | allowGroup = GROUP_ALLOWED_TO_EXECUTE |
| 2559 | allowGroup = YET_ANOTHER_GROUP_ALLOWED_TO_EXECUTE |
| 2560 | ---- |
| 2561 | |
| 2562 | [[upload.allowGroup]]upload.allowGroup:: |
| 2563 | + |
| 2564 | Name of the groups of users that are allowed to execute 'upload-pack' |
| 2565 | on the server. One or more groups can be set. |
| 2566 | + |
| 2567 | If no groups are added, any user will be allowed to execute |
| 2568 | 'upload-pack' on the server. |
| 2569 | |
| 2570 | |
| Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 2571 | [[user]] Section user |
| Shawn O. Pearce | a758fef | 2009-08-19 08:29:32 -0700 | [diff] [blame] | 2572 | ~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 0a35191 | 2009-06-01 08:14:46 -0700 | [diff] [blame] | 2573 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2574 | [[user.name]]user.name:: |
| Shawn O. Pearce | 0a35191 | 2009-06-01 08:14:46 -0700 | [diff] [blame] | 2575 | + |
| 2576 | Name that Gerrit calls itself in Git when it creates a new Git |
| 2577 | commit, such as a merge during change submission. |
| 2578 | + |
| 2579 | By default this is "Gerrit Code Review". |
| 2580 | |
| Shawn O. Pearce | 92a7fd1 | 2009-08-18 19:52:48 -0700 | [diff] [blame] | 2581 | [[user.email]]user.email:: |
| Shawn O. Pearce | 0a35191 | 2009-06-01 08:14:46 -0700 | [diff] [blame] | 2582 | + |
| 2583 | Email address that Gerrit refers to itself as when it creates a |
| 2584 | new Git commit, such as a merge commit during change submission. |
| 2585 | + |
| 2586 | If not set, Gerrit generates this as "gerrit@`hostname`", where |
| 2587 | `hostname` is the hostname of the system Gerrit is running on. |
| 2588 | + |
| 2589 | By default, not set, generating the value at startup. |
| 2590 | |
| Edwin Kempin | 0e02ded | 2011-09-16 15:10:14 +0200 | [diff] [blame] | 2591 | [[user.anonymousCoward]]user.anonymousCoward:: |
| 2592 | + |
| 2593 | Username that this displayed in the Gerrit WebUI and in e-mail |
| 2594 | notifications if the full name of the user is not set. |
| 2595 | + |
| 2596 | By default "Anonymous Coward" is used. |
| 2597 | |
| Shawn O. Pearce | 0bf2f52 | 2009-05-14 11:02:03 -0700 | [diff] [blame] | 2598 | |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 2599 | File `etc/secure.config` |
| Remy Bohmer | 203eea3 | 2012-02-19 21:21:36 +0100 | [diff] [blame] | 2600 | ------------------------ |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 2601 | The optional file `'$site_path'/etc/secure.config` overrides (or |
| 2602 | supplements) the settings supplied by `'$site_path'/etc/gerrit.config`. |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 2603 | The file should be readable only by the daemon process and can be |
| 2604 | used to contain private configuration entries that wouldn't normally |
| 2605 | be exposed to everyone. |
| 2606 | |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 2607 | Sample `etc/secure.config`: |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 2608 | ---- |
| Shawn O. Pearce | 34f38cf | 2011-06-16 19:18:54 -0700 | [diff] [blame] | 2609 | [auth] |
| 2610 | registerEmailPrivateKey = 2zHNrXE2bsoylzUqDxZp0H1cqUmjgWb6 |
| Brad Larson | 3a6f077 | 2012-07-25 11:41:22 -0500 | [diff] [blame] | 2611 | restTokenPrivateKey = 7e40PzCjlUKOnXATvcBNXH6oyiu+r0dFk2c= |
| Shawn O. Pearce | 34f38cf | 2011-06-16 19:18:54 -0700 | [diff] [blame] | 2612 | |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 2613 | [database] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 2614 | username = webuser |
| 2615 | password = s3kr3t |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 2616 | |
| 2617 | [ldap] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 2618 | password = l3tm3srch |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 2619 | |
| 2620 | [httpd] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 2621 | sslKeyPassword = g3rr1t |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 2622 | |
| 2623 | [sendemail] |
| Shawn O. Pearce | 9d342a4 | 2009-12-16 15:49:05 -0800 | [diff] [blame] | 2624 | smtpPass = sp@m |
| Shawn O. Pearce | 7929d87 | 2011-05-15 13:33:15 -0700 | [diff] [blame] | 2625 | |
| 2626 | [remote "bar"] |
| 2627 | password = s3kr3t |
| Shawn O. Pearce | 0d4037a | 2009-11-12 18:33:46 -0800 | [diff] [blame] | 2628 | ---- |
| 2629 | |
| Johan Bjork | 3e5ee30 | 2012-01-27 17:59:54 +0100 | [diff] [blame] | 2630 | File `etc/peer_keys` |
| 2631 | -------------------- |
| 2632 | |
| 2633 | The optional file `'$site_path'/etc/peer_keys` controls who can |
| 2634 | login as the 'Gerrit Code Review' user, required for the link:cmd-suexec.html[suexec] |
| 2635 | command. |
| 2636 | |
| 2637 | The format is one Base-64 encoded public key per line. |
| 2638 | |
| 2639 | |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 2640 | Database system_config |
| 2641 | ---------------------- |
| 2642 | |
| 2643 | Several columns in the `system_config` table within the metadata |
| 2644 | database may be set to control how Gerrit behaves. |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2645 | |
| 2646 | [NOTE] |
| 2647 | The contents of the `system_config` table are cached at startup |
| 2648 | by Gerrit. If you modify any columns in this table, Gerrit needs |
| 2649 | to be restarted before it will use the new values. |
| 2650 | |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 2651 | Configurable Parameters |
| 2652 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2653 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2654 | site_path:: |
| 2655 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2656 | Local filesystem directory holding the site customization assets. |
| 2657 | Placing this directory under version control and/or backup is a |
| 2658 | good idea. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2659 | + |
| Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 2660 | Files in this directory provide additional configuration. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2661 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2662 | Other files support site customization. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 2663 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 2664 | * link:config-headerfooter.html[Site Header/Footer] |
| 2665 | |
| Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 2666 | GERRIT |
| 2667 | ------ |
| 2668 | Part of link:index.html[Gerrit Code Review] |