generated from template/slidev-template
docs: 更新README,添加Cloudflare配置和ipList示例
This commit is contained in:
1 parent
45b6f138e1
commit
0e4906977c
1 file changed
+26
-1
@@ -1,3 +1,28 @@
|
||||
# 定时获取ip
|
||||
|
||||
ip变化了,修改dns解析。
|
||||
ip变化了,修改dns解析。
|
||||
|
||||
## cloudflare
|
||||
|
||||
必须要的参数
|
||||
|
||||
- zone_id
|
||||
- domain
|
||||
- api_token
|
||||
|
||||
flag为 1 时,更新ipv4地址
|
||||
flag为 2 时,更新ipv6地址
|
||||
flag为 3 时,更新ipv4和ipv6地址
|
||||
|
||||
## ipList
|
||||
|
||||
可以直接指定要更新的记录列表,格式如下:
|
||||
|
||||
```json
|
||||
"ipList": [
|
||||
{
|
||||
"type": "AAAA",
|
||||
"domain": "sub.example.com",
|
||||
}
|
||||
]
|
||||
```
|
||||
Reference in new issue
Block a user