Skip to content

z0rr0/ipinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 14, 2024
ef42dfd · Dec 14, 2024

History

69 Commits
Dec 14, 2024
Aug 24, 2024
Mar 17, 2024
Mar 18, 2023
Dec 14, 2024
Aug 6, 2018
Feb 16, 2024
Mar 18, 2023
Mar 18, 2023
Mar 24, 2023
Dec 14, 2024
Dec 14, 2024
Mar 17, 2024
Oct 17, 2024

Repository files navigation

IPINFO

Go Version License

IP info web service. It handles 4 requests:

  1. default - plain text info about request IP
  2. /short - short info about request IP
  3. /json - json info about request IP
  4. /xml - json info about request IP
  5. /html - html info about request IP

example

Build

make build
# cp config.example.json ipinfo.json
# set custom settings in ipinfo.json
./ipinfo -config ipinfo.json

For docker container z0rr0/ipinfo

make docker
# or only for linux amd64
# make docker_linux_amd64

Local run

make start
make stop

# alias for [stop + start]
make restart

For docker container

# mydir/ipinfo.json
# mydir/GeoLite2-City.mmdb
docker run --rm --name ipinfo -u $UID:$UID -p 8082:8082 -v /mydir:/data/conf:ro z0rr0/ipinfo:latest

License

This source code is governed by a BSD 3-Clause license that can be found in the LICENSE file.

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com