Added GeoIP Organisational data (#2099)
This commit is contained in:
parent
9bb9011e57
commit
769f11df60
2 changed files with 3 additions and 0 deletions
|
@ -98,9 +98,11 @@ fi
|
|||
# download GeoIP databases
|
||||
wget -O /etc/nginx/GeoIP.dat.gz https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz || { echo 'Could not download GeoLiteCountry, exiting.' ; exit 1; }
|
||||
wget -O /etc/nginx/GeoLiteCity.dat.gz https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz || { echo 'Could not download GeoLiteCity, exiting.' ; exit 1; }
|
||||
wget -O /etc/nginx/GeoIPASNum.dat.gz http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz || { echo 'Could not download GeoLiteOrg, exiting.' ; exit 1; }
|
||||
|
||||
gunzip /etc/nginx/GeoIP.dat.gz
|
||||
gunzip /etc/nginx/GeoLiteCity.dat.gz
|
||||
gunzip /etc/nginx/GeoIPASNum.dat.gz
|
||||
|
||||
mkdir --verbose -p "$BUILD_PATH"
|
||||
cd "$BUILD_PATH"
|
||||
|
|
|
@ -49,6 +49,7 @@ http {
|
|||
{{/* 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_proxy_recursive on;
|
||||
|
||||
{{ if $cfg.EnableVtsStatus }}
|
||||
|
|
Loading…
Reference in a new issue