ipinfo

command module
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

README

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

Documentation

Overview

Package main implements main method of IPINFO service.

Directories

Path Synopsis
Package conf contains methods and structures for configuration.
Package conf contains methods and structures for configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL