David Pursehouse | 3676d63 | 2018-02-22 10:59:57 +0900 | [diff] [blame] | 1 | @PLUGIN@ Configuration |
| 2 | ====================== |
| 3 | |
| 4 | The @PLUGIN@ plugin is configured in the `$site_path/etc/@PLUGIN@.config` file: |
| 5 | |
| 6 | File '@PLUGIN@.config' |
| 7 | ---------------------- |
| 8 | |
| 9 | ``` |
| 10 | [readonly] |
| 11 | message = Gerrit is down for maintenance |
| 12 | ``` |
| 13 | |
| 14 | If the configuration is modified, the plugin must be reloaded for the changes to |
| 15 | be effective. |
| 16 | |
| 17 | |
| 18 | ```readonly.message``` |
| 19 | : Message to be shown to clients when attempting to perform an opeation that |
| 20 | is blocked due to the server being in read-only mode. When not specified, |
| 21 | the default is "Gerrit is under maintenance - all data is READ ONLY". |
Luca Milanesio | 0d372d7 | 2018-04-12 23:18:11 +0100 | [diff] [blame] | 22 | |
Thomas Dräbing | 038db2d | 2024-03-21 18:26:04 +0100 | [diff] [blame] | 23 | ```readonly.markerDir``` |
| 24 | : Directory in which to create the file marking that Gerrit is in readonly mode. |
| 25 | By default, this is `$SITE/etc`. |
| 26 | |
Luca Milanesio | 0d372d7 | 2018-04-12 23:18:11 +0100 | [diff] [blame] | 27 | ```readonly.allowSshCommand``` |
| 28 | : Allow one or more SSH commands to be executed. When the allow value starts |
| 29 | with a caret '^' then it is interpreted as regex, otherwise as a prefix. |
| 30 | Repeat with multiple values to allow more than one command or pattern |
| 31 | of commands. |
| 32 | The command 'gerrit plugin rm' or 'gerrit plugin remove' is always allowed. |
Luca Milanesio | 5bcb027 | 2018-07-31 09:02:01 -0700 | [diff] [blame] | 33 | |
| 34 | |
| 35 | File gerrit.readonly |
| 36 | -------------------- |
| 37 | |
| 38 | Marker file used to enable or disable the read-only status. When present under |
| 39 | the $GERRIT_SITE/etc directory, Gerrit is set to read-only and only read |
| 40 | operations are enabled according to the readonly plugin configuration. |