Quick Start
Step 1 — Build the binary
git clone https://github.com/k9io/maxmind-api-proxy.git
cd maxmind-api-proxy
go mod tidy
go build -o maxmind-api-proxyStep 2 — Create a configuration file
cp etc/config.json my-config.json{
"api_key": "my-strong-secret-key",
"cache_errors": false,
"http_listen": ":8080",
"http_tls": false,
"http_cert": "",
"http_key": "",
"http_mode": "release",
"maxmind_username": "123456",
"maxmind_password": "your_maxmind_license_key",
"maxmind_url": "https://geoip.maxmind.com/geoip/v2.1/city/",
"redis_host": "127.0.0.1",
"redis_port": 6379,
"redis_password": "your_redis_password",
"redis_database": "0",
"redis_cache_time": 24
}Step 3 — Start the proxy
Step 4 — Query the proxy
Next steps
Last updated