Sign inSign up

jidckii/nginx-geoip2

By jidckii

Updated over 7 years ago

Image
1

4.4K

jidckii/nginx-geoip2 repository overview

nginx-geoip2

dockeri.co

Build based on official nginx and telize

IP database location in /usr/share/GeoIP

For check:

  1. clone original git repo
  2. change localhost to _in file nginx.vh.default.conf
  3. Run:
    docker run --rm -it --name nginx-geoip2 --net host -v $PWD/nginx.vh.default.conf:/etc/nginx/conf.d/default.conf jidckii/nginx-geoip2:latest
    Curl from host public ip:
curl -I http://${you-host-or-ip}

example response:

HTTP/1.1 200 OK
...
x-geoip-continent_code: EU
x-geoip-country: Germany
x-geoip-country_code: DE
...

Tag summary

Content type

Image

Digest

Size

40.1 MB

Last updated

over 7 years ago

docker pull jidckii/nginx-geoip2