-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.py
31 lines (27 loc) · 1.06 KB
/
settings.py
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
# environment
rbv_base_path = "."
validator_path = rbv_base_path + "/util/cli-validator"
# connections
default_cache_server = {"host":"rpki-validator.realmv6.org", "port":"8282"}
default_ip2as_mapping = {"name":"cymru"}
bgp_validator_server = {"host":"localhost", "port":"6414"}
www_validator_server = {"host":"localhost", "port":"5000"}
# maintenance timer
maintenance_timeout = 300
# restart thread after N errors, disable = 0
thread_max_errors = 42
# output
logging = True
verbose = True
warning = True
# log validation request/queries, file format:
# ClientIP;ClientOS;ClientBrowser;RequestURL;CacheServer;Prefix;ASN;Validity
validation_log = { "enabled": True,
"file": rbv_base_path + "/validation.log",
"rotate": True,
"maxlines": 10000}
# log maintenance information, i.e., access and errors, maxlines = 1 week
maintenance_log = { "enabled": True,
"file": rbv_base_path + "/maintenance.log",
"rotate": True,
"maxlines": (7*24*3600/maintenance_timeout)}