blob: 9344499af4a0b27e23cd73c4a8d77332b739024c [file] [log] [blame] [view] [edit]
External URL Avatar Plugin Configuration
========================================
Options:
* `avatar.url` - the location of avatar images containing `%s`, which
will then be replaced by the `username`. Required.
* `avatar.changeUrl` - the URL shown in Gerrit's user settings to tell
the user, where the avatar can be changed. Optional.
* `avatar.sizeParameter` - URL parameter with `${size}` placeholder to
forward the preferred image size to the avatar provider. Optional.
Example (to be added to `etc/gerrit.config`):
```
[avatar]
url = http://example.org/avatars/%s.jpg
changeUrl = http://example.org/account.html
sizeParameter = s=${size}x${size}
```
Please note that `http://` URLs will be automatically rewritten to
`https://`, if `gerrit.canonicalWebUrl` uses HTTPS.