Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 757 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 757 Bytes

geoip-redis

2-part package for loading GeoLite2 Database to redis and working with it from your application.

app

Contains logic abot uploading existing GeoLite2 database to redis

lib

Contains types + lookup functions

Usage

  1. login here
  2. download database (you need 2 files: GeoLite2-City-Blocks-IPv4.csv and GeoLite2-City-Locations-.csv)
  3. install redis
  4. run geoip-redis-exe -r 'redis://user@localhost:6379/1' -b './data/GeoLite2-City-Blocks-IPv4.csv' -l './data/GeoLite2-City-Locations-ru.csv' -d 'geoip_ipv4' on host where you need database
  5. run your app (which use ./lib i guess)