I convert ip's into countries and stuff
./geoip-api --lang languages.json
Lang is Required
- lang --- location of local language.json
- mmdb - location of local .mmdb file
- gzdb -- location of local .gzip file
- dburl -- location of remote file (can be mmdb or gzip)
- s3bucket -- s3 bucket
- s3key -- full filepath so if the file is at /foo/bar/qux.jpg then thats your key
- s3region -- region of the s3 bucket
{
"languages": [
{ "language": "en", "country": "US" },
{ "language": "en", "country": "CA" },
{ "language": "en", "country": "AU" },
{ "language": "en", "country": "GB" },
{ "language": "en", "country": "NO" },
{ "language": "es", "country": "MX" },
{ "language": "es", "country": "ES" }
],
"default": {
"language": "en",
"country": "NO"
}
}
curl http://127.0.0.1:45000/\?ip\=193.215.2.26
curl -Ls https://raw.githubusercontent.com/danielcherubini/geoip-api/master/install.sh | sudo -H sh