Settings for receiving IP address data (geoip.toml)

By default, the settings are located here:

/etc/kor-elf-shield/geoip.toml

The path to these settings can be changed in the main settings and can be found here (parameter geoip).

A copy of the full settings file is here.

There are several sections in this file:


Basic settings

These settings should be located at the beginning of the file before the sections: "Service settings MaxMind"

Parameter enabled
Meaning true or false
By default false
Description Enables or disables receiving data about IP addresses. Don't forget to configure the data from the service before enabling maxmind.comit.
true  - includes
false - turns it off
Examples
enabled = true
enabled = false
***
Parameter service
Meaning Acceptable values: "maxmind"
By default maxmind
Description We specify which service we will use to receive the IP address data.
Examples
service = "maxmind"

MaxMind Service Settings

Address: https://www.maxmind.com/en/geolite-free-ip-geolocation-data

To use this service, you must register and receive authorization information: https://www.maxmind.com/en/geolite2/signup.

Specify the parameters for this section first [maxmind], and then specify the other parameters of this section. Example:

[maxmind]
username = ""
password = ""
interval = 86400
Parameter username
Meaning User ID
By default  
Description The user's ID. To get it, you first need to register here: https://www.maxmind.com/en/geolite2/signup
Examples
username = "username"
***
Parameter password
Meaning The license key
By default  
Description The license key. It must be generated in your personal account.
Examples
password = "password"
***
Parameter interval
Meaning From 1
By default 86400
Description The update interval for updating the database in seconds. It is recommended to leave it on 86400 (1 time per day).
Examples
interval = 86400
***
Parameter language
Meaning Acceptable values: "Russian", "English", "Spanish", "French", "German", "Japanese", "Brazilian Portuguese", "Simplified Chinese"
By default Russian
Description The language in which the IP address data will be returned.
Examples
language = "Russian"
language = "Simplified Chinese"
language = "English"
***
Parameter url
Meaning Service address
By default  
Description If for some reason you want to change your address. For example: the service has changed its address or you have a paid subscription. Don't forget to specify/change the parameter url.
Examples
url = ""
url = "https://my-domain.com/api"