| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 1 | Gerrit2 - Configuration |
| 2 | ======================= |
| 3 | |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 4 | File `gerrit.config` |
| 5 | -------------------- |
| 6 | |
| 7 | The optional file `'$site_path'/gerrit.config` is a Git-style config |
| 8 | file that controls many host specific settings for Gerrit. |
| 9 | |
| 10 | [NOTE] |
| 11 | The contents of the `gerrit.config` file are cached at startup |
| 12 | by Gerrit. If you modify any propeties in this file, Gerrit needs |
| 13 | to be restarted before it will use the new values. |
| 14 | |
| 15 | Sample `gerrit.config`: |
| 16 | ---- |
| 17 | [core] |
| 18 | packedGitLimit = 200 m |
| 19 | |
| 20 | [cache] |
| 21 | directory = /var/cache/gerrit2 |
| 22 | |
| 23 | [cache "diff"] |
| 24 | diskbuffer = 10 m |
| 25 | ---- |
| 26 | |
| Shawn O. Pearce | 0d3ecff | 2009-06-01 08:34:17 -0700 | [diff] [blame] | 27 | Section auth |
| 28 | ~~~~~~~~~~~~ |
| 29 | |
| 30 | See also link:config-sso.html[SSO configuration]. |
| 31 | |
| 32 | auth.type:: |
| 33 | + |
| 34 | Type of user authentication employed by Gerrit. This setting has |
| 35 | two supported values: |
| 36 | + |
| 37 | * `OpenID` |
| 38 | + |
| 39 | The default setting. Gerrit uses any valid OpenID |
| 40 | provider chosen by the end-user. For more information see |
| 41 | http://openid.net/[openid.net] |
| 42 | + |
| 43 | * `HTTP` |
| 44 | + |
| 45 | Gerrit relies upon data in the HTTP request, such as the HTTP basic |
| 46 | authentication, or some types of commerical single-sign-on solutions. |
| 47 | |
| 48 | + |
| 49 | By default, OpenID. |
| 50 | |
| 51 | auth.httpHeader:: |
| 52 | + |
| 53 | HTTP header to trust the username from, or unset to select HTTP basic |
| 54 | or digest authentication. Only used if `auth.type` was set to HTTP. |
| 55 | |
| 56 | auth.emailFormat:: |
| 57 | + |
| 58 | Optional format string to construct user email addresses out of |
| 59 | user login names. Only used if auth.type is HTTP. |
| 60 | + |
| 61 | This value can be set to a format string, where `\{0\}` is replaced |
| 62 | with the login name. E.g. "\{0\}+gerrit@example.com" with a user |
| 63 | login name of "foo" will produce "foo+gerrit@example.com" during |
| 64 | the first time user "foo" registers. |
| 65 | |
| 66 | auth.contributorAgreements:: |
| 67 | + |
| 68 | Controls whether or not the contributor agreement features are |
| 69 | enabled for the Gerrit site. If enabled a user must complete a |
| 70 | contributor agreement before they can upload changes. |
| 71 | + |
| 72 | If enabled, the admin must also insert one or more rows into |
| 73 | `contributor_agreements` and create agreement files under |
| 74 | `'$site_path'/static`, so users can actually complete one or |
| 75 | more agreements. |
| 76 | + |
| 77 | By default this is false (no agreements are used). |
| 78 | |
| 79 | auth.maxSessionAge:: |
| 80 | + |
| 81 | Maximum number of minutes that an XSRF token or a session cookie |
| 82 | is permitted to be valid for. |
| 83 | + |
| 84 | By default this is 720 minutes (12 hours). Any browser session |
| 85 | which has not been used in this time span will ask the user to |
| 86 | login again. |
| 87 | + |
| 88 | Administrators may increase (or decrease) this setting to control |
| 89 | how long an idle session is allowed to remain alive. |
| 90 | |
| 91 | auth.allowGoogleAccountUpgrade:: |
| 92 | + |
| 93 | Allow old Gerrit1 users to seamlessly upgrade from Google Accounts |
| 94 | on Google App Engine to OpenID authentication. This should only be |
| 95 | set to true on a Gerrit2 database that was imported from a Gerrit1 |
| 96 | database run on Google App Engine. Having it enabled incurs an |
| 97 | extra database query when new Google Account users register with |
| 98 | the Gerrit2 server. |
| 99 | + |
| 100 | Its strongly encouraged to unset this once the following query |
| 101 | drops to 0, or close to 0: |
| 102 | + |
| 103 | ==== |
| 104 | SELECT COUNT(*) FROM account_external_ids e |
| 105 | WHERE e.external_id LIKE 'Google Account %' |
| 106 | AND NOT EXISTS (SELECT 1 |
| 107 | FROM account_external_ids o |
| 108 | WHERE o.account_id = e.account_id |
| 109 | AND o.external_id LIKE '%.google.com%/id?id=%'); |
| 110 | ==== |
| 111 | + |
| 112 | By default, unset/false. |
| 113 | |
| Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 114 | Section cache[[section_cache]] |
| 115 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 116 | |
| 117 | cache.directory:: |
| 118 | + |
| 119 | Path to a local directory where Gerrit can write cached entities for |
| 120 | future lookup. This local disk cache is used to retain expensively |
| 121 | computed information across restarts. |
| 122 | + |
| 123 | If the location does not exist, Gerrit will try to create it. |
| 124 | + |
| 125 | Default is `'$site_path'/disk_cache`. |
| 126 | |
| 127 | cache.maxAge:: |
| 128 | Default setting inherited by named caches; see below. |
| 129 | cache.memoryLimit:: |
| 130 | Default setting inherited by named caches; see below. |
| 131 | cache.diskLimit:: |
| 132 | Default setting inherited by named caches; see below. |
| 133 | cache.diskBuffer:: |
| 134 | Default setting inherited by named caches; see below. |
| 135 | |
| 136 | cache.<name>.maxAge:: |
| 137 | + |
| 138 | Maximum age, in minutes, to keep an entry in the cache. If an |
| 139 | entry has not been accessed in this period of time, it is removed |
| 140 | from the cache. |
| 141 | + |
| 142 | Default is 129600 (90 days); 5 for cache "openid". |
| 143 | |
| 144 | cache.<name>.memoryLimit:: |
| 145 | + |
| 146 | Maximum number of cache items to retain in memory. Keep in mind |
| 147 | this is total number of items, not bytes of heap used. |
| 148 | + |
| 149 | Default is 1024. |
| 150 | |
| 151 | cache.<name>.diskLimit:: |
| 152 | + |
| 153 | Maximum number of cache items to retain on disk, if this cache |
| 154 | supports storing its items to disk. Like memoryLimit, this is |
| 155 | total number of items, not bytes of disk used. |
| 156 | + |
| 157 | Default is 16384. |
| 158 | |
| 159 | cache.<name>.diskBuffer:: |
| 160 | + |
| 161 | Number of bytes to buffer in memory before writing less frequently |
| 162 | accessed cache items to disk, if this cache supports storing its |
| 163 | items to disk. |
| 164 | + |
| 165 | Default is 5 MiB. |
| 166 | + |
| 167 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 168 | |
| Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 169 | Standard Caches[[cache_names]] |
| 170 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 171 | |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 172 | cache `"accounts"`:: |
| 173 | + |
| 174 | Caches records from the `accounts` database table, containing user |
| 175 | preferences and preferred display name/email address. If updates are |
| 176 | made directly to this database table, this cache should be flushed. |
| 177 | |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 178 | cache `"diff"`:: |
| 179 | + |
| 180 | Caches the edit list describing the differences between two versions |
| 181 | of a file. Gerrit uses this cache to accelerate display of file |
| 182 | contents by computing the difference only once, typically during |
| 183 | the initial upload. |
| 184 | + |
| 185 | The average entry in this cache is approximately 1100 bytes when |
| 186 | stored on disk. The in-memory representation is only slightly |
| 187 | larger, closer to 1300 bytes, depending on JVM. |
| 188 | + |
| 189 | Keeping entries for 90 days gives sufficient time for most changes |
| 190 | to be submitted or abandoned before their relevant difference items |
| 191 | expire out. |
| 192 | |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 193 | cache `"groups"`:: |
| 194 | + |
| 195 | Caches which groups a user is a member of. This is derived from the |
| 196 | `account_group_members` table, and also the `account_external_ids` |
| 197 | table if OpenID authentication is enabled. If either table is |
| 198 | modified directly in the database, this cache should be flushed. |
| 199 | |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 200 | cache `"openid"`:: |
| 201 | + |
| 202 | If OpenID authentication is enabled, caches the OpenID discovery |
| 203 | response by URL, for up to 5 minutes. This can reduce the time |
| 204 | required for OpenID authentication through very common providers, |
| 205 | such as Google Accounts. |
| 206 | |
| Shawn O. Pearce | 4a45271 | 2009-05-28 20:12:33 -0700 | [diff] [blame] | 207 | cache `"projects"`:: |
| 208 | + |
| 209 | Caches the project description records, from the `projects` table |
| 210 | in the database. If a project record is updated or deleted, this |
| 211 | cache should be flushed. Newly inserted projects do not require |
| 212 | a cache flush, as they will be read upon first reference. |
| 213 | |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 214 | cache `"sshkeys"`:: |
| 215 | + |
| 216 | Caches unpacked versions of user SSH keys, so the internal SSH daemon |
| 217 | can match against them during authentication. The unit of storage |
| 218 | is per-user, so 1024 items translates to 1024 unique user accounts. |
| 219 | As each individual user account may configure multiple SSH keys, |
| 220 | 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] | 221 | + |
| 222 | This cache is based off the `account_ssh_keys` table and the |
| 223 | `accounts.ssh_user_name` column in the database. If either is |
| 224 | modified directly, this cache should be flushed. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 225 | |
| Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 226 | See also link:cmd-flush-caches.html[gerrit flush-caches]. |
| 227 | |
| Shawn O. Pearce | 6854bdc | 2009-06-01 08:14:15 -0700 | [diff] [blame] | 228 | Section contactstore |
| 229 | ~~~~~~~~~~~~~~~~~~~~ |
| 230 | |
| 231 | contactstore.url:: |
| 232 | + |
| 233 | URL of the web based contact store Gerrit will send any offline |
| 234 | contact information to when it collects the data from users as part |
| 235 | of a contributor agreement. |
| 236 | + |
| 237 | See link:config-contact.html[Contact Information]. |
| 238 | |
| 239 | contactstore.appsec:: |
| 240 | + |
| 241 | Shared secret of the web based contact store. |
| 242 | |
| 243 | Section core |
| 244 | ~~~~~~~~~~~~ |
| 245 | |
| 246 | core.packedGitWindowSize:: |
| 247 | + |
| 248 | Number of bytes of a pack file to load into memory in a single |
| 249 | read operation. This is the "page size" of the JGit buffer cache, |
| 250 | used for all pack access operations. All disk IO occurs as single |
| 251 | window reads. Setting this too large may cause the process to load |
| 252 | more data than is required; setting this too small may increase |
| 253 | the frequency of `read()` system calls. |
| 254 | + |
| 255 | Default on JGit is 8 KiB on all platforms. |
| 256 | + |
| 257 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 258 | |
| 259 | core.packedGitLimit:: |
| 260 | + |
| 261 | Maximum number of bytes to load and cache in memory from pack files. |
| 262 | If JGit needs to access more than this many bytes it will unload less |
| 263 | frequently used windows to reclaim memory space within the process. |
| 264 | As this buffer must be shared with the rest of the JVM heap, it |
| 265 | should be a fraction of the total memory available. |
| 266 | + |
| 267 | Default on JGit is 10 MiB on all platforms. |
| 268 | + |
| 269 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 270 | |
| 271 | core.deltaBaseCacheLimit:: |
| 272 | + |
| 273 | Maximum number of bytes to reserve for caching base objects |
| 274 | that multiple deltafied objects reference. By storing the entire |
| 275 | decompressed base object in a cache Git is able to avoid unpacking |
| 276 | and decompressing frequently used base objects multiple times. |
| 277 | + |
| 278 | Default on JGit is 10 MiB on all platforms. You probably do not |
| 279 | need to adjust this value. |
| 280 | + |
| 281 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 282 | |
| 283 | core.packedGitOpenFiles:: |
| 284 | + |
| 285 | Maximum number of pack files to have open at once. A pack file |
| 286 | must be opened in order for any of its data to be available in |
| 287 | a cached window. |
| 288 | + |
| 289 | If you increase this to a larger setting you may need to also adjust |
| 290 | the ulimit on file descriptors for the host JVM, as Gerrit needs |
| 291 | additional file descriptors available for network sockets and other |
| 292 | repository data manipulation. |
| 293 | + |
| 294 | Default on JGit is 128 file descriptors on all platforms. |
| 295 | |
| 296 | core.packedGitMmap:: |
| 297 | + |
| 298 | When true, JGit will use `mmap()` rather than `malloc()+read()` |
| 299 | to load data from pack files. The use of mmap can be problematic |
| 300 | on some JVMs as the garbage collector must deduce that a memory |
| 301 | mapped segment is no longer in use before a call to `munmap()` |
| 302 | can be made by the JVM native code. |
| 303 | + |
| 304 | In server applications (such as Gerrit) that need to access many |
| 305 | pack files, setting this to true risks artifically running out |
| 306 | of virtual address space, as the garbage collector cannot reclaim |
| 307 | unused mapped spaces fast enough. |
| 308 | + |
| 309 | Default on JGit is false. Although potentially slower, it yields |
| 310 | much more predictable behavior. |
| 311 | |
| Shawn O. Pearce | eb7f8ce | 2009-06-01 09:57:15 -0700 | [diff] [blame] | 312 | Section gerrit |
| 313 | ~~~~~~~~~~~~~~ |
| 314 | |
| Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame^] | 315 | gerrit.basePath:: |
| 316 | + |
| 317 | Local filesystem directory holding all Git repositories that |
| 318 | Gerrit knows about and can process changes for. A project |
| 319 | entity in Gerrit maps to a local Git repository by creating |
| 320 | the path string `"$\{basePath}/$\{project_name}.git"`. |
| 321 | + |
| 322 | If relative, the path is resolved relative to `'$site_path'`. |
| 323 | |
| Shawn O. Pearce | eb7f8ce | 2009-06-01 09:57:15 -0700 | [diff] [blame] | 324 | gerrit.canonicalWebUrl:: |
| 325 | + |
| 326 | The default URL for Gerrit to be accessed through. |
| 327 | + |
| 328 | Typically this would be set to "http://review.example.com/" or |
| 329 | "http://example.com/gerrit/" so Gerrit can output links that point |
| 330 | back to itself. |
| 331 | + |
| 332 | Setting this is highly recommended, as its necessary for the upload |
| 333 | code invoked by "git push" or "repo upload" to output hyperlinks |
| 334 | to the newly uploaded changes. |
| 335 | |
| 336 | gerrit.canonicalGitUrl:: |
| 337 | + |
| 338 | Optional base URL for repositories available over the anonymous git |
| 339 | protocol. For example, set this to `git://mirror.example.com/base/` |
| 340 | to have Gerrit display patch set download URLs in the UI. Gerrit |
| 341 | automatically appends the project name onto the end of the URL. |
| 342 | + |
| 343 | By default unset, as the git daemon must be configured externally |
| 344 | by the system administrator, and might not even be running on the |
| 345 | same host as Gerrit. |
| 346 | |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 347 | Section gitweb[[section_gitweb]] |
| 348 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 349 | |
| 350 | See also link:config-gitweb.html[Gitweb Integration]. |
| 351 | |
| 352 | gitweb.url:: |
| 353 | + |
| 354 | Optional URL of an affiliated gitweb service. Defines the |
| 355 | web location where a `gitweb.cgi` is installed to browse |
| Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame^] | 356 | gerrit.basePath and the repositories it contains. |
| Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 357 | + |
| 358 | Gerrit appends any necessary query arguments onto the end of this URL. |
| 359 | For example, "?p=$project.git;h=$commit". |
| 360 | |
| Shawn O. Pearce | 0cb2b65f | 2009-06-01 09:48:45 -0700 | [diff] [blame] | 361 | Section repo |
| 362 | ~~~~~~~~~~~ |
| 363 | |
| 364 | repo.showDownloadCommand:: |
| 365 | + |
| 366 | If set to true, Gerrit advertises patch set downloads with the |
| 367 | `repo download` command, assuming that all projects managed by this |
| 368 | instance are generally worked on with the repo multi-repository tool. |
| 369 | + |
| 370 | By default, false, as not all instances will deploy repo. |
| 371 | |
| Shawn O. Pearce | 9410f2c | 2009-05-14 10:26:47 -0700 | [diff] [blame] | 372 | Section sshd |
| 373 | ~~~~~~~~~~~~ |
| 374 | |
| Shawn O. Pearce | 1d3cb444 | 2009-05-30 14:03:31 -0700 | [diff] [blame] | 375 | sshd.listenAddress:: |
| 376 | + |
| 377 | Specifies the local addresses the internal SSHD should listen |
| 378 | for connections on. The following forms may be used to specify |
| 379 | an address. In any form, `:'port'` may be omitted to use the |
| 380 | default of 29418. |
| 381 | + |
| 382 | * 'hostname':'port' (for example `review.example.com:29418`) |
| 383 | * 'IPv4':'port' (for example `10.0.0.1:29418`) |
| 384 | * ['IPv6']:'port' (for example `[ff02::1]:29418`) |
| 385 | * \*:'port' (for example `*:29418`) |
| 386 | |
| 387 | + |
| 388 | If multiple values are supplied, the daemon will listen on all |
| 389 | of them. |
| 390 | + |
| 391 | By default, *:29418. |
| 392 | |
| Shawn O. Pearce | 9410f2c | 2009-05-14 10:26:47 -0700 | [diff] [blame] | 393 | sshd.reuseAddress:: |
| 394 | + |
| 395 | If true, permits the daemon to bind to the port even if the port |
| 396 | is already in use. If false, the daemon ensures the port is not |
| 397 | in use before starting. Busy sites may need to set this to true |
| 398 | to permit fast restarts. |
| 399 | + |
| 400 | By default, true. |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 401 | |
| Shawn O. Pearce | fc9081f | 2009-05-14 10:26:59 -0700 | [diff] [blame] | 402 | sshd.tcpKeepAlive:: |
| 403 | + |
| 404 | If true, enables TCP keepalive messages to the other side, so |
| 405 | the daemon can terminate connections if the peer disappears. |
| 406 | + |
| 407 | By default, true. |
| 408 | |
| Shawn O. Pearce | 0bf2f52 | 2009-05-14 11:02:03 -0700 | [diff] [blame] | 409 | sshd.cipher:: |
| 410 | + |
| 411 | Available ciphers. To permit multiple ciphers, specify multiple |
| 412 | `sshd.cipher` keys in the configuration file, one cipher name |
| 413 | per key. Cipher names starting with `+` are enabled in addition |
| 414 | to the default ciphers, cipher names starting with `-` are removed |
| 415 | from the default cipher set. |
| 416 | + |
| 417 | Supported ciphers: aes128-cbc, aes128-cbc, aes256-cbc, blowfish-cbc, |
| 418 | 3des-cbc, none. |
| 419 | + |
| 420 | By default, all supported ciphers except `none` are available. |
| 421 | |
| 422 | sshd.mac:: |
| 423 | + |
| 424 | Available MAC (message authentication code) algorithms. To permit |
| 425 | multiple algorithms, specify multiple `sshd.mac` keys in the |
| 426 | configuration file, one MAC per key. MAC names starting with `+` |
| 427 | are enabled in addition to the default MACs, MAC names starting with |
| 428 | `-` are removed from the default MACs. |
| 429 | + |
| 430 | Supported MACs: hmac-md5, hmac-md5-96, hmac-sha1, hmac-sha1-96. |
| 431 | + |
| 432 | By default, all supported MACs are available. |
| 433 | |
| Shawn O. Pearce | 0a35191 | 2009-06-01 08:14:46 -0700 | [diff] [blame] | 434 | Section user |
| 435 | ~~~~~~~~~~~~ |
| 436 | |
| 437 | name:: |
| 438 | + |
| 439 | Name that Gerrit calls itself in Git when it creates a new Git |
| 440 | commit, such as a merge during change submission. |
| 441 | + |
| 442 | By default this is "Gerrit Code Review". |
| 443 | |
| 444 | email:: |
| 445 | + |
| 446 | Email address that Gerrit refers to itself as when it creates a |
| 447 | new Git commit, such as a merge commit during change submission. |
| 448 | + |
| 449 | If not set, Gerrit generates this as "gerrit@`hostname`", where |
| 450 | `hostname` is the hostname of the system Gerrit is running on. |
| 451 | + |
| 452 | By default, not set, generating the value at startup. |
| 453 | |
| Shawn O. Pearce | 0bf2f52 | 2009-05-14 11:02:03 -0700 | [diff] [blame] | 454 | |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 455 | File `replication.config` |
| 456 | ------------------------- |
| 457 | |
| Shawn O. Pearce | 51967cd | 2009-05-08 19:46:57 -0700 | [diff] [blame] | 458 | The optional file `'$site_path'/replication.config` controls how |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 459 | Gerrit automatically replicates changes it makes to any of the Git |
| 460 | repositories under its control. |
| 461 | |
| 462 | * link:config-replication.html[Git Replication/Mirroring] |
| 463 | |
| 464 | Database system_config |
| 465 | ---------------------- |
| 466 | |
| 467 | Several columns in the `system_config` table within the metadata |
| 468 | database may be set to control how Gerrit behaves. |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 469 | |
| 470 | [NOTE] |
| 471 | The contents of the `system_config` table are cached at startup |
| 472 | by Gerrit. If you modify any columns in this table, Gerrit needs |
| 473 | to be restarted before it will use the new values. |
| 474 | |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 475 | Configurable Parameters |
| 476 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 477 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 478 | site_path:: |
| 479 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 480 | Local filesystem directory holding the site customization assets. |
| 481 | Placing this directory under version control and/or backup is a |
| 482 | good idea. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 483 | + |
| Shawn O. Pearce | e7ec053 | 2009-05-08 09:42:54 -0700 | [diff] [blame] | 484 | SSH key files (`ssh_host_rsa_key` and `ssh_host_dsa_key` or |
| 485 | `ssh_host_key`) in this directory provide the host keys for the |
| 486 | internal SSH daemon. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 487 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 488 | Other files support site customization. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 489 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 490 | * link:config-headerfooter.html[Site Header/Footer] |
| Shawn O. Pearce | e7ec053 | 2009-05-08 09:42:54 -0700 | [diff] [blame] | 491 | * link:config-replication.html[Git Replication/Mirroring] |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 492 | |
| Shawn O. Pearce | 7b40571 | 2009-05-08 18:27:53 -0700 | [diff] [blame] | 493 | Not User Serviceable |
| 494 | ~~~~~~~~~~~~~~~~~~~~ |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 495 | |
| 496 | These fields generally shouldn't be modified. |
| 497 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 498 | xsrf_private_key:: |
| 499 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 500 | A private key used to sign the XSRF (cross site request forgey) |
| 501 | protection tokens. All RPC calls which can potentially modify |
| 502 | data require that the client obtain, and then later present an XSRF |
| 503 | token to Gerrit. The tokens are signed with this private key. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 504 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 505 | This column is automatically generated when the database is |
| 506 | initialized. Changing it to a new value would cause all current |
| 507 | XSRF tokens to be invalidated, forcing clients to either fail or |
| 508 | retry any requests in progress. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 509 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 510 | Changing it is not recommended. |
| 511 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 512 | account_private_key:: |
| 513 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 514 | Like xsrf_private_key, but used to sign the cookie that tells Gerrit |
| 515 | what account the end-user has signed into. The key signs the cookie, |
| 516 | preventing a client from spoofing another account. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 517 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 518 | This column is automatically generated when the database is |
| 519 | initialized. Changing it to a new value would cause all current |
| 520 | cookies to be invalidated, forcing clients to fail their current |
| 521 | requests and require the user to sign in again. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 522 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 523 | Changing it is not recommended. |
| 524 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 525 | admin_group_id:: |
| 526 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 527 | Unique identity of the group with full privileges. Any user who |
| 528 | is a member of this group may manage any other group, any project, |
| 529 | and other system settings over the web. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 530 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 531 | This is initialized by Gerrit to be the "Administrators" group. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 532 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 533 | Changing it is not recommended. |
| 534 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 535 | anonymous_group_id:: |
| 536 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 537 | Unique identity of the group for anonymous (not authenticated) users. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 538 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 539 | All users are a member of this group, whether or not they are |
| 540 | actually signed in to Gerrit. Any access rights assigned to |
| 541 | this group are inherited by all users. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 542 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 543 | This is initialized by Gerrit to be the "Anonymous Users" group. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 544 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 545 | Changing it is not recommended. |
| 546 | |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 547 | registered_group_id:: |
| 548 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 549 | Unique identity of the group for all authenticated users. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 550 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 551 | All signed-in users are a member of this group. Any access rights |
| 552 | assigned to this group are inherited by all users once they have |
| 553 | authenticated to Gerrit. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 554 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 555 | Since account registration is open and fairly easy to obtain, |
| 556 | moving from the "Anonymous Users" group to this group is not |
| 557 | very difficult. Caution should be taken when assigning any |
| 558 | permissions to this group. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 559 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 560 | This is initialized by Gerrit to be the "Registered Users" group. |
| Shawn O. Pearce | 8e9c73b | 2009-05-08 17:38:25 -0700 | [diff] [blame] | 561 | + |
| Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 562 | Changing it is not recommended. |
| 563 | |
| Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 564 | GERRIT |
| 565 | ------ |
| 566 | Part of link:index.html[Gerrit Code Review] |