-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.cfg
109 lines (76 loc) · 1.64 KB
/
config.cfg
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
# Constellation
# Pluggable authoritative DNS server
# Configuration file
# Example: https://github.com/valeriansaliou/constellation/blob/master/config.cfg
[server]
log_level = "debug"
identifier = "crisp-dns/primary"
[dns]
inets = [
"0.0.0.0:53",
"[::]:53"
]
tcp_timeout = 2
nameservers = [
"a.ns.crisp.chat",
"b.ns.crisp.chat"
]
soa_master = "a.ns.crisp.chat"
soa_responsible = "hostmaster.crisp.chat"
soa_refresh = 10000
soa_retry = 2400
soa_expire = 604800
soa_ttl = 3600
record_ttl = 3600
[dns.zone.'relay.crisp.chat']
[dns.flatten]
resolvers = [
"1.1.1.1",
"1.0.0.1",
"2606:4700:4700::1111",
"2606:4700:4700::1001"
]
[dns.health]
check_enable = true
check_interval = 60
[dns.health.notify]
slack_hook_url = "https://hooks.slack.com/services/xxxx"
[[dns.health.http]]
zone = "relay.crisp.chat"
name = "client.@"
method = "GET"
path = "/health"
port = 443
secure = true
timeout = 5
max_attempts = 3
expected_status = [
200,
203
]
expected_body = [
"{\"code\":0,\"message\":\"No Operation\"}",
"success"
]
[geo]
database_path = "./res/geo/"
database_file = "GeoLite2-Country.mmdb"
update_enable = true
update_interval = 864000
update_url = "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&suffix=tar.gz&license_key=REPLACE_THIS_WITH_YOUR_GEOLITE2_LICENSE_KEY"
[http]
inet = "[::1]:8080"
workers = 2
record_token = "REPLACE_THIS_WITH_A_SECRET_KEY"
[redis]
database = 0
pool_size = 8
max_lifetime_seconds = 20
idle_timeout_seconds = 600
connection_timeout_seconds = 2
delinquency_seconds = 10
cache_refresh_seconds = 60
cache_expire_seconds = 600
[redis.master]
host = "localhost"
port = 6379