blob: 0a61965242b4e4f3e171bdea765c38f1888e681e [file] [log] [blame] [view]
Configuration
=============
The configuration of the @PLUGIN@ plugin is done in the `gerrit.config`
file.
```
[plugin "@PLUGIN@"]
url = http://example.org/avatars/${user}.jpg
changeUrl = http://example.org/account.html
sizeParameter = s=${size}x${size}
lowerCase = true
```
<a id="url">
`plugin.@PLUGIN@.url`
: The location of avatar images. The placeholder `${user}` will
be replaced by the `username` and `${email}` will be replaced with
the user's `email address`. Required.
<a id="changeUrl">
`plugin.@PLUGIN@.changeUrl`
: The URL shown in Gerrit's user settings to tell the user, where the
avatar can be changed. The placeholder `${user}` will
be replaced by the `username` and `${email}` will be replaced with
the user's `email address`. Optional.
<a id="sizeParameter">
`plugin.@PLUGIN@.sizeParameter`
: URL parameter with `${size}` placeholder to forward the preferred
image size to the avatar provider. Optional.
<a id="lowerCase">
`plugin.@PLUGIN@.lowerCase`
: Convert the username and email to lower case. Default value = false. Optional.
Please note that `http://` URLs will be automatically rewritten to
`https://`, if `gerrit.canonicalWebUrl` uses HTTPS.