Releases: PascalMinder/geoblock
Releases · PascalMinder/geoblock
New configuration options
- Adds a new option, to ignore any API timeout error and still allow the request
- Adds the option to configure the name of an HTTP header field to get the geolocation of the request from.
- Add the option to specify a custom HTTP code for a denied request.
Add silent option
Adds the silentStartUp
option, which, if enabled, does not show any configuration output at start up.
Add `addCountryHeader` option to add HTTP `X-IPCountry` request header
Add a new option addCountryHeader
, which allows adding the HTTP X-IPCountry
request header to any incoming request.
Thanks to rjmidau
Add support to define a list of whitelisted IP addresses
Adds a new configuration option, which allows specifying allowed IP addresses or IP address blocks
Switch between white and black list
Thanks to @tmeckel
Allows using the list of countries as a white or black list.
Fixed plugin logging
Creates logs like:
INFO: GeoBlock: 2022/07/19 15:13:59 allow local IPs: true
INFO: GeoBlock: 2022/07/19 15:13:59 log local requests: false
INFO: GeoBlock: 2022/07/19 15:13:59 log allowed requests: true
INFO: GeoBlock: 2022/07/19 15:13:59 log api requests: false
INFO: GeoBlock: 2022/07/19 15:13:59 API uri: https://get.geojs.io/v1/ip/country/{ip}
INFO: GeoBlock: 2022/07/19 15:13:59 API timeout: 750
INFO: GeoBlock: 2022/07/19 15:13:59 cache size: 15
INFO: GeoBlock: 2022/07/19 15:13:59 force monthly update: true
INFO: GeoBlock: 2022/07/19 15:13:59 allow unknown countries: false
INFO: GeoBlock: 2022/07/19 15:13:59 unknown country api response: nil
INFO: GeoBlock: 2022/07/19 15:13:59 allowed countries: [GB IS]
Configurable API timeout
Adds an optional API timeout configuration
Fix .traefik.yml
Fixes spelling mistake in .traefik.yml.
Use camel case in configuration
This release changes the configuration file variables. It now uses camel case for easier reading.
Additionally, it prevents logging reading and writing to the database.
Release v0.1.7
- Added LRU cache for IP addresses
- Added an "unknown country" IP address option