summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.rr.yaml5
-rw-r--r--schemas/config/3.0.schema.json8
2 files changed, 13 insertions, 0 deletions
diff --git a/.rr.yaml b/.rr.yaml
index 6c7ec894..f099dd79 100644
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -43,6 +43,11 @@ server:
- SOME_KEY: "SOME_VALUE"
- SOME_KEY2: "SOME_VALUE2"
+ # Username (not UID) of the user from whom the on_init command is executed. An empty value means to use the RR process user.
+ #
+ # Default: ""
+ user: ""
+
# Worker starting command, with any required arguments.
#
# This option is required.
diff --git a/schemas/config/3.0.schema.json b/schemas/config/3.0.schema.json
index 0d62a6f1..bb633e27 100644
--- a/schemas/config/3.0.schema.json
+++ b/schemas/config/3.0.schema.json
@@ -106,6 +106,14 @@
"$ref": "#/definitions/Duration",
"default": "60s"
},
+ "user": {
+ "description": "Username (not UID) of the user from whom the on_init command is executed. An empty value means to use the RR process user.",
+ "type": "string",
+ "default": "",
+ "examples": [
+ "www-data"
+ ]
+ },
"env": {
"description": "Environment variables for the worker processes",
"type": "array",