forked from TimothyYe/godns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_sample.json
55 lines (55 loc) · 1.32 KB
/
config_sample.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
{
"provider": "DNSPod",
"password": "",
"login_token": "",
"domains": [
{
"domain_name": "example.com",
"sub_domains": ["www", "test"]
},
{
"domain_name": "example2.com",
"sub_domains": ["www", "test"]
}
],
"ip_urls": [
"https://api.ipify.org",
"https://myip.biturl.top",
"https://ip4.seeip.org",
"https://ipecho.net/plain",
"https://api-ipv4.ip.sb/ip",
"https://api.ip.sb/ip"
],
"ipv6_urls": ["https://ipify.org"],
"ip_type": "IPv4",
"interval": 300,
"resolver": "8.8.8.8",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36",
"ip_interface": "eth0",
"socks5_proxy": "",
"use_proxy": false,
"debug_info": false,
"proxied": false,
"notify": {
"telegram": {
"enabled": false,
"bot_api_key": "",
"chat_id": "",
"message_template": ""
},
"mail": {
"enabled": false,
"smtp_server": "",
"smtp_username": "",
"smtp_password": "",
"smtp_port": 25,
"send_from": "",
"send_to": ""
}
},
"webhook": {
"enabled": false,
"url": "http://localhost:5000/api/v1/send",
"request_body": "{ \"domain\": \"{{.Domain}}\", \"ip\": \"{{.CurrentIP}}\", \"ip_type\": \"{{.IPType}}\" }"
}
}