-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.json
104 lines (104 loc) · 2.14 KB
/
config.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
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
{
"server": [
{
"ip": "127.0.0.1",
"port": 1053,
"protocol": "udp"
},
{
"ip": "127.0.0.1",
"port": 10853,
"protocol": "tcp",
"tls": {
"enable": true,
"cert_path": "",
"key_path": "",
"ca_path": ""
}
}
],
"handler": {
"max_ttl": 300,
"cache_timeout": 10,
"zone_reload": 600,
"log_source_location": false,
"upstream_fallback": false,
"redis": {
"ip": "redis",
"port": 6379,
"password": "",
"prefix": "test_",
"suffix": "_test",
"connect_timeout": 0,
"read_timeout": 0,
"active_connections": 10
},
"log": {
"enable": true,
"target": "file",
"level": "info",
"path": "/tmp/redins.log",
"time_format": "2006-01-02 15:04:05",
"kafka": {
"enable": true,
"topic": "redins",
"brokers": ["127.0.0.1:9092"]
}
},
"upstream": [{
"ip": "1.1.1.1",
"port": 53,
"protocol": "udp",
"timeout": 400
},{
"ip": "8.8.8.8",
"port": 53,
"protocol": "udp",
"timeout": 400
}],
"geoip": {
"enable": true,
"country_db": "geoCity.mmdb",
"asn_db": "geoIsp.mmdb"
},
"healthcheck": {
"enable": false,
"max_requests": 5,
"max_pending_requests": 100,
"update_interval": 600,
"check_interval": 10,
"redis": {
"ip": "redis",
"port": 6379,
"password": "",
"prefix": "healthcheck_",
"suffix": "_healthcheck",
"connect_timeout": 0,
"read_timeout": 0,
"active_connections": 10
},
"log": {
"enable": true,
"target": "file",
"level": "info",
"path": "/tmp/healthcheck.log",
"time_format": "2006-01-02 15:04:05"
}
}
},
"error_log": {
"enable": true,
"target": "stdout",
"level": "debug",
"path": "/tmp/error.log",
"format": "text",
"time_format": "2006-01-02 15:04:05"
},
"ratelimit": {
"enable": true,
"rate": 60,
"burst": 10,
"blacklist":[],
"whitelist": []
}
}