-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_conf_schema.json
More file actions
63 lines (63 loc) · 1.81 KB
/
_conf_schema.json
File metadata and controls
63 lines (63 loc) · 1.81 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
{
"gateway_url": {
"description": "External gateway URL",
"type": "string",
"hint": "HTTP endpoint that receives AstrBot message events and returns a reply JSON.",
"obvious_hint": true,
"default": ""
},
"secret_header_name": {
"description": "Secret header name",
"type": "string",
"hint": "Optional header name used for gateway authentication.",
"default": "X-External-Gateway-Secret"
},
"secret": {
"description": "Gateway secret",
"type": "string",
"hint": "Optional gateway secret. Store it in AstrBot config; do not commit it.",
"obvious_hint": true,
"default": ""
},
"timeout_seconds": {
"description": "HTTP timeout seconds",
"type": "int",
"default": 30
},
"listen_all": {
"description": "Forward ordinary messages",
"type": "bool",
"hint": "When disabled, only /gateway commands are forwarded.",
"default": false
},
"require_wake": {
"description": "Only forward wake/mention messages in passive mode",
"type": "bool",
"default": true
},
"stop_event_on_reply": {
"description": "Stop later handlers when gateway returns a reply",
"type": "bool",
"default": true
},
"allowed_platforms": {
"description": "Allowed platform adapter names",
"type": "list",
"hint": "Empty means all platforms. Examples: telegram, aiocqhttp, discord.",
"default": []
},
"allowed_sessions": {
"description": "Allowed unified message origins",
"type": "list",
"hint": "Empty means all sessions. Use this to restrict noisy groups.",
"default": []
},
"extra_headers_json": {
"description": "Extra HTTP headers JSON",
"type": "text",
"hint": "Optional JSON object merged into request headers.",
"editor_mode": true,
"editor_language": "json",
"default": "{}"
}
}