blob: a5b0a4c4ed812f2e396e6ce5c464bba059b4162f [file] [log] [blame] [view]
David Pursehouse3676d632018-02-22 10:59:57 +09001@PLUGIN@ Configuration
2======================
3
4The @PLUGIN@ plugin is configured in the `$site_path/etc/@PLUGIN@.config` file:
5
6File '@PLUGIN@.config'
7----------------------
8
9```
10[readonly]
11 message = Gerrit is down for maintenance
12```
13
14If the configuration is modified, the plugin must be reloaded for the changes to
15be 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 Milanesio0d372d72018-04-12 23:18:11 +010022
Thomas Dräbing038db2d2024-03-21 18:26:04 +010023```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 Milanesio0d372d72018-04-12 23:18:11 +010027```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 Milanesio5bcb0272018-07-31 09:02:01 -070033
34
35File gerrit.readonly
36--------------------
37
38Marker file used to enable or disable the read-only status. When present under
39the $GERRIT_SITE/etc directory, Gerrit is set to read-only and only read
40operations are enabled according to the readonly plugin configuration.