GitXplorerGitXplorer
a

suricate

public
0 stars
0 forks
3 issues

Commits

List of commits on branch master.
Unverified
bc19941a222ba2d5bf4f97fa0702afef54c1a2f3

right response for bad ip

aa0s committed 4 years ago
Unverified
4be138d2074339bf67e468614f75d6b65696c4b4

fix Dockerfile

aa0s committed 4 years ago
Unverified
359994541b54b4773af0236afb968826dc4633f4

fix: return result when empty city or country

aa0s committed 4 years ago
Unverified
bace69f47374700cd0d153aa15cea0cdfdc70872

remove ripl

aa0s committed 4 years ago
Unverified
2674ae25acaa3a9699e630368da13a33748bb248

refactoring

aa0s committed 4 years ago
Verified
739fcad1ef9e71801f8f6d5f5672546bf4cfe6f8

Create README.md

aa0s committed 6 years ago

README

The README file for this repository.

Suricate

The simple REST API to MaxMind City database

curl -s "localhost:3000/lookup?ip=36.89.229.97&language=en" | jq                               ruby-2.7.1@suricate
{
  "country": "Indonesia",
  "country_iso_code": "ID",
  "city": "Tangerang",
  "lat": -6.177,
  "long": 106.6284
}

curl -s "localhost:3000/health"
OK

Docker

You need fresh GeoLite2-City.mmdb from MaxMind site

docker build . --tag suricate
docker run -it --name suricate \
  -v ~/GeoLite2-City.mmdb:/app/maxminddb/GeoLite2-City.mmdb \
  -p 3000:3000 \
  suricate

Get console

docker exec -it suricate rake c