This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathri-forward-webhook.schema.json
74 lines (74 loc) · 2.35 KB
/
ri-forward-webhook.schema.json
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
{
"$schema": "https://json-schema.org/draft-07/schema#",
"type": "object",
"description": "Config file for ri-forward-webhook.",
"additionalProperties": false,
"properties": {
"endpoints": {
"type": "object",
"description": "Map of endpoints, where the keys are the URL paths to match.",
"additionalProperties": {
"type": "object",
"description": "Endpoint definition.",
"required": [
"forwardTo"
],
"additionalProperties": false,
"properties": {
"forwardTo": {
"type": "string",
"description": "Destination URI to proxy requests for.",
"format": "uri"
},
"methods": {
"type": [
"array",
"null"
],
"description": "HTTP methods to listen to. Defaults to [POST]",
"items": {
"type": "string",
"enum": [
"GET",
"HEAD",
"POST",
"PUT",
"DELETE",
"CONNECT",
"OPTIONS",
"TRACE",
"PATCH"
]
}
},
"auth": {
"type": [
"object",
"null"
],
"description": "Authentication configuration for endpoint.",
"additionalProperties": false,
"properties": {
"githubWebhookSecret": {
"type": "string",
"description": "Secret value for GitHub Webhook token, used to validate X-Hub-Signature-256 headers."
},
"githubWebhookSecretFile": {
"type": "string",
"description": "Path to file containing secret value for GitHub Webhook token, used to validate X-Hub-Signature-256 headers."
}
}
},
"noFollowRedirect": {
"type": "boolean",
"description": "If set to true, then ri-forward-webhook will not follow HTTP redirects, but instead just return the responses as-is."
},
"insecureSkipVerifyTls": {
"type": "boolean",
"description": "If set to true, then ri-forward-webhook will ignore any TLS certificate issues with the upstream server."
}
}
}
}
}
}