Repository navigation
Expand file tree
/
Copy pathschema.json
More file actions
107 lines (107 loc) · 3.21 KB
/
Copy pathschema.json
File metadata and controls
107 lines (107 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"$id": "https://raw.githubusercontent.com/roadrunner-server/server/refs/heads/master/schema.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"description": "All the valid configuration parameters for the Server plugin for RoadRunner.",
"type": "object",
"title": "roadrunner-server",
"additionalProperties": false,
"required": [
"command"
],
"properties": {
"on_init": {
"description": "Arbitrary command to execute before RR starts allocating workers.",
"type": "object",
"additionalProperties": false,
"required": [
"command"
],
"properties": {
"command": {
"description": "Command to execute. It can be any script or binary that RoadRunner has access to.",
"type": "string",
"minLength": 1,
"examples": [
"php not-worker.php",
"sh script.sh",
"start script.bat"
]
},
"exec_timeout": {
"description": "Script execution timeout. Zero or empty defaults to 60s.",
"$ref": "https://raw.githubusercontent.com/roadrunner-server/roadrunner/refs/heads/master/schemas/config/3.0.schema.json#/definitions/Duration",
"default": "60s"
},
"exit_on_error": {
"description": "Exit RR if the `on_init` command fails.",
"type": "boolean",
"default": "false"
},
"user": {
"$ref": "#/$defs/User"
},
"env": {
"$ref": "#/$defs/EnvironmentVariables"
}
}
},
"command": {
"description": "The command used to start workers, including any required arguments. Any plugins that implement a worker pool will inherit this command if they do not specify an override.",
"type": "string",
"minLength": 1,
"examples": [
"php psr-worker.php"
]
},
"user": {
"$ref": "#/$defs/User"
},
"group": {
"description": "Group name (not GID) for the worker processes. The RR process user group will be used if not provided. The RoadRunner process must be run as root for this to work.",
"type": "string",
"minLength": 1,
"examples": [
"www-data"
]
},
"env": {
"$ref": "#/$defs/EnvironmentVariables"
},
"relay": {
"description": "Worker relay method. Can be 'pipes', a TCP address (e.g. tcp://127.0.0.1:6002) or a socket (e.g. unix:///var/run/rr.sock).",
"type": "string",
"default": "pipes",
"minLength": 1,
"examples": [
"pipes",
"tcp://127.0.0.1:6002",
"unix:///var/run/rr.sock"
]
},
"relay_socket": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/tcplisten/v1.6.0/schema.json",
"description": "Permissions and ownership for the filesystem UNIX relay socket. These values do not set worker credentials."
}
},
"$defs": {
"EnvironmentVariables": {
"description": "Environment variables for the process or command.",
"type": "object",
"minProperties": 1,
"additionalProperties": false,
"patternProperties": {
"^[a-zA-Z0-9._-]+$": {
"type": "string"
}
}
},
"User": {
"description": "Username (not UID) of the user from whom the command or process is executed. The RoadRunner process user will be used if not provided. The RoadRunner process must be run as root in order to specify a different user.",
"type": "string",
"minLength": 1,
"examples": [
"www-data"
]
}
}
}