Enabled the dynamic reload of GeoIP data (#2107)

* Moved geoip data into its own folder so it can be volume mounted

* Added FS watches for the geoip data

* Fixed single quotes issue (interpolation)

* Fixed gofmt errors

* Updated to directory crawl
This commit is contained in:
Karl Stoney 2018-02-17 20:24:50 +00:00 committed by Manuel Alejandro de Brito Fontes
parent ce8ba06208
commit d1b6f32981
3 changed files with 46 additions and 16 deletions

View file

@ -47,9 +47,9 @@ http {
{{/* databases used to determine the country depending on the client IP address */}}
{{/* http://nginx.org/en/docs/http/ngx_http_geoip_module.html */}}
{{/* this is require to calculate traffic for individual country using GeoIP in the status page */}}
geoip_country /etc/nginx/GeoIP.dat;
geoip_city /etc/nginx/GeoLiteCity.dat;
geoip_org /etc/nginx/GeoIPASNum.dat;
geoip_country /etc/nginx/geoip/GeoIP.dat;
geoip_city /etc/nginx/geoip/GeoLiteCity.dat;
geoip_org /etc/nginx/geoip/GeoIPASNum.dat;
geoip_proxy_recursive on;
{{ if $cfg.EnableVtsStatus }}