mirror of https://github.com/TZGyn/geoip
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
409 B
Markdown
25 lines
409 B
Markdown
# GeoIP
|
|
|
|
## A maxmind geoip api server with auto db refresh
|
|
|
|
[](https://railway.app/template/LiUOsa?referralCode=bSruGU)
|
|
|
|
## Deployment
|
|
|
|
```bash
|
|
go build main.go # compile
|
|
ACCOUNT_ID={id} LICENSE_KEY={key} ./main # run
|
|
```
|
|
|
|
## Development
|
|
|
|
```bash
|
|
air # with air
|
|
go run main.go # without air
|
|
```
|
|
|
|
## API
|
|
|
|
https://geoip.fly.dev/{ip}
|
|
https://geoip.fly.dev/me
|