-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.json
62 lines (61 loc) · 1.98 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
{
"debug": true,
"address": "127.0.0.1:5312",
"suffix": "geoipns",
"database_sets": [
{
"attribute_name": "location",
"databases": [
{
"file": "geoip/test/intranet.csv",
"fields": {
"cidr": "cidr",
"low_ip": "start_ip",
"high_ip": "end_ip",
"data": "location"
},
"use_hashmap": false
},
{
"file": "data/GeoLite2-City-Blocks-IPv4.csv",
"fields": {
"cidr": "network",
"data": "geoname_id"
},
"use_hashmap": true
},
{
"file": "data/GeoLite2-City-Blocks-IPv6.csv",
"fields": {
"cidr": "network",
"data": "geoname_id"
},
"use_hashmap": true
}
]
},
{
"attribute_name": "asn",
"databases": [{
"file": "data/GeoLite2-ASN-Blocks-IPv4.csv",
"fields": {
"cidr": "network",
"data": "autonomous_system_organization"
},
"use_hashmap": false
},
{
"file": "data/GeoLite2-ASN-Blocks-IPv6.csv",
"fields": {
"cidr": "network",
"data": "autonomous_system_organization"
},
"use_hashmap": false
}
]
}
],
"hashmap_file": "data/GeoLite2-City-Locations-en.csv",
"hashmap_file_key": "geoname_id",
"hashmap_file_field": ["city_name", "subdivision_1_iso_code", "country_iso_code"]
}