-
Notifications
You must be signed in to change notification settings - Fork 678
Expand file tree
/
Copy pathv4.0.json
More file actions
219 lines (219 loc) · 5.58 KB
/
v4.0.json
File metadata and controls
219 lines (219 loc) · 5.58 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://ddns.newfuture.cc/schema/v4.0.json",
"description": "DNS 配置文件 https://github.com/NewFuture/DDNS",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"title": "please use https://ddns.newfuture.cc/schema/v2.8.json",
"description": "请更换为 https://ddns.newfuture.cc/schema/v2.8.json",
"default": "https://ddns.newfuture.cc/schema/v2.8.json",
"enum": [
"https://ddns.newfuture.cc/schema/v2.8.json",
"http://ddns.newfuture.cc/schema/v2.8.json",
"./schema/v2.8.json"
]
},
"id": {
"$id": "/properties/id",
"type": [
"string",
"null"
],
"title": "ID or Email",
"description": "DNS服务API认证的ID或者邮箱"
},
"token": {
"$id": "/properties/token",
"type": "string",
"title": "API Token",
"description": "DNS服务商的访问Token或者Key"
},
"dns": {
"$id": "/properties/dns",
"type": "string",
"title": "DNS Provider",
"description": "dns服务商:阿里为alidns,DNS.COM为dnscom,DNSPOD国际版为(dnspod_com),cloudflare,HE.net为he,华为DNS为huaweidns,自定义回调为callback",
"default": "dnspod",
"examples": [
"dnspod",
"alidns",
"cloudflare"
],
"enum": [
"dnspod",
"alidns",
"cloudflare",
"dnspod_com",
"dnscom",
"he",
"huaweidns",
"callback"
]
},
"ipv4": {
"$id": "/properties/ipv4",
"title": "IPv4 domain list",
"description": "待更新的IPv4 域名列表",
"type": "array",
"uniqueItems": true,
"items": {
"$id": "/properties/ipv4/items",
"title": "ipv4 domain for DDNS",
"type": "string",
"pattern": "^(?:\\*\\.)?(?:[a-zA-Z0-9](?:[a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,18}$",
"examples": [
"newfuture.cc",
"ipv4.example.newfuture.cc"
]
}
},
"ipv6": {
"$id": "/properties/ipv6",
"type": "array",
"title": "IPv6 domain list",
"description": "待更新的IPv6 域名列表",
"uniqueItems": true,
"items": {
"$id": "/properties/ipv6/items",
"title": "The ipv6 domain for DDNS",
"type": "string",
"pattern": "^(?:\\*\\.)?(?:[a-zA-Z0-9](?:[a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,18}$",
"examples": [
"newfuture.cc",
"ipv6.example.newfuture.cc"
]
}
},
"index4": {
"$id": "/properties/index4",
"type": [
"string",
"integer",
"boolean",
"array"
],
"items": {
"type": [
"string",
"integer"
],
"minimum": 0
},
"uniqueItems": true,
"minItems": 1,
"minimum": 0,
"title": "IPv4 address Setting",
"description": "本机 IPv4 获取方式设置",
"default": "default",
"examples": [
"default",
"public",
0,
1,
"192\\\\.168\\\\..*",
false
]
},
"index6": {
"$id": "/properties/index6",
"type": [
"string",
"integer",
"boolean",
"array"
],
"items": {
"type": [
"string",
"integer"
],
"minimum": 0
},
"uniqueItems": true,
"minItems": 1,
"minimum": 0,
"title": "IPv6 address Setting",
"description": "本机 IPv6 获取方式设置",
"default": "default",
"examples": [
"default",
"public",
0,
1,
"2404:f801:10:.*",
false
]
},
"ttl": {
"$id": "/properties/ttl",
"type": [
"number",
"null"
],
"title": "TTL",
"description": "设置DNS TTL,默认不填读取DNS服务商的配置",
"default": null,
"examples": [
600,
null
]
},
"proxy": {
"$id": "/properties/proxy",
"type": [
"string",
"null"
],
"title": "HTTP Proxy Setting",
"description": "DIRECT表示直连,多个代理分号(;)分割逐个尝试直到成功",
"pattern": "^[a-zA-Z0-9\\-;_:\\.]*$",
"examples": [
"127.0.0.1:1080;DIRECT"
]
},
"cache": {
"$id": "/properties/cache",
"type": [
"string",
"boolean"
],
"title": "Enable Cache",
"description": "是否启用缓存记录以避免频繁更新",
"default": true,
"examples": [
true,
false,
"/path/to/cache/ddns.cache"
]
},
"log": {
"$id": "/properties/log",
"type": "object",
"title": "Log Config",
"description": "日志配置,支持自定义日志级别和输出位置。可通过命令行 --log.level, --log.file 或环境变量 DDNS_LOG_LEVEL, DDNS_LOG_FILE 设置。",
"properties": {
"level": {
"type": "string",
"title": "Log Level",
"description": "日志级别,如 DEBUG、INFO、WARNING、ERROR、CRITICAL",
"default": "INFO",
"enum": ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
},
"file": {
"type": ["string", "null"],
"title": "Log Output File",
"description": "日志输出文件路径,留空或为null时输出到控制台"
}
},
"required": [],
"additionalProperties": false
}
},
"required": [
"id",
"token"
],
"additionalProperties": false
}