No bullshit blazing fast geoip server
No bullshit blazing fast geoip server
go build geoip.go
curl localhost:8080/geoip/json/50.19.0.1
geoip:
-a, --accountid int sign up and generate this at maxmind website
-b, --bindip string the ip address to bind to (default "0.0.0.0")
-e, --edition string edition of database to download (default "GeoLite2-City")
-l, --license string sign up and generate this at maxmind website
-p, --port string port to listen on (default "8080")
-r, --routeprefix string route prefix for geoip service, cant be empty (default "/geoip")
-u, --updateinterval int intervals (hour) to check for database updates (default 24)
docker build . -t geoip-server
docker run -p 8080:8080 geoip-server /geoip -l <license token> -a <accountid>
curl localhost:8080/geoip/json/50.19.0.1