forked from pboymt/ddns-at-home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.schema.json
55 lines (55 loc) · 1.44 KB
/
settings.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
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"required": [
"apiKey",
"apiSecret",
"domainName",
"resourceRecord"
],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"description": "The schema to verify this document against."
},
"apiKey": {
"type": "string",
"maxLength": 16,
"minLength": 16,
"title": "阿里云API Key"
},
"apiSecret": {
"type": "string",
"maxLength": 30,
"minLength": 30,
"title": "阿里云API Secret"
},
"domainName": {
"type": "string",
"pattern": "[a-z0-9]+\\.[a-z0-9]+",
"title": "需要设定记录的域名"
},
"resourceRecord": {
"type": "string",
"pattern": "(\\*|@|[a-z0-9]+)",
"title": "需要设定的解析记录值"
},
"disableIPv6": {
"type": "boolean",
"default": true,
"title": "忽略IPv6记录的设定"
},
"disableIPv4": {
"type": "boolean",
"default": false,
"title": "忽略IPv4记录的设定"
},
"TTL": {
"type": "number",
"default": 600,
"maximum": 86400,
"minimum": 60
}
}
}