Enable download of GeoLite2 databases (#4896)
This commit is contained in:
parent
58146c803b
commit
74944b99e9
4 changed files with 167 additions and 0 deletions
|
|
@ -563,6 +563,13 @@ _**default:**_ true
|
|||
## use-geoip2
|
||||
|
||||
Enables the [geoip2 module](https://github.com/leev/ngx_http_geoip2_module) for NGINX.
|
||||
Since `0.27.0` and due to a [change in the MaxMind databases](https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases) a license is required to have access to the databases.
|
||||
For this reason, it is required to define a new flag `--maxmind-license-key` in the ingress controller deployment to download the databases needed during the initialization of the ingress controller.
|
||||
Alternatively, it is possible to use a volume to mount the files `/etc/nginx/geoip/GeoLite2-City.mmdb` and `/etc/nginx/geoip/GeoLite2-ASN.mmdb`, avoiding the overhead of the download.
|
||||
|
||||
!!! Important
|
||||
If the feature is enabled but the files are missing, GeoIP2 will not be enabled.
|
||||
|
||||
_**default:**_ false
|
||||
|
||||
## enable-brotli
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue