Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 288 Bytes

File metadata and controls

12 lines (9 loc) · 288 Bytes

GeoIP server

A really simple GeoIP server to tell the country of the request.

$ docker-compose up

$ host=$(dinghy ip)
$ port=$(docker port geoipserver_app_1 8080 | cut -f 2- -d:)
$ curl -s "http://${host}:${port}/country" | jq .
{
  "countryCode": "AU"
}