Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Latest commit

 

History

History
15 lines (12 loc) · 701 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 701 Bytes

geoip-redis

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

app

Contains

lib

Contains types + lookup function

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)