telize

High performance JSON IP and GeoIP REST API (IP Geolocation)

  • 所有者: fcambus/telize
  • 平台:
  • 許可證: BSD 2-Clause "Simplified" License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

t e l i z e
_______________________
\ /_
\ \ ___ // /
__ \ ____ \ __ / \ /\ / ____
/ _/ //___/ _
_
/
_ // //___
\
_ ____ / __ __ ____ ____ / ///
/ _, / _ / / //, / _
\\ /_ /
/_
/\ /_ /
<0(--- _
/ -h7- _
/ \ . __/ ---- _/ --(0>
\ .\ /. .
\ .\ // /
_
\ //___/
Y

Description

Telize is a REST API built in C with Kore allowing to get a visitor IP
address and to query location information from any IP address. It outputs
JSON-encoded IP geolocation data, and supports both JSON and JSONP.

Geolocation operations are performed using libmaxminddb which caches the
database in RAM. Therefore, Telize has very minimal overhead and should
be blazing fast.

Requirements

Dependencies

Telize requires Kore 3.2.0+ and libmaxminddb.

GeoIP2 databases

Telize requires the free GeoLite2 databases from MaxMind.

The GeoLite2 City and GeoLite2 ASN databases files should be placed
in /var/db/GeoIP.

Building

Using the kodev tool:

kodev build

Configuration

Running

Using the kodev tool:

kodev run

Access and Error logs

The default Telize configuration does not have logging enabled, it must be
configured manually.

If your Telize instance produces lots of logs, Logswan might be of
interest.

Telize and proxies

CORS Support (Cross-origin resource sharing)

Telize has CORS enabled by default with the following policy:

Access-Control-Allow-Origin: *

Usage

For complete API documentation and usage examples, please check the
project site.

Get IP address in Plain text format

  • Example: http://127.0.0.1/ip

Get IP address in JSON format

  • Example (JSON): http://127.0.0.1/jsonip
  • Example (JSONP): http://127.0.0.1/jsonip?callback=getip

Get IP address location in JSON format

Calling the API endpoint without any parameter will return the visitor
IP address:

  • Example (JSON): http://127.0.0.1/location
  • Example (JSONP): http://127.0.0.1/location?callback=getgeoip

Appending an IP address as parameter will return location information for
the given address:

  • Example (JSON): http://127.0.0.1/location/46.19.37.108
  • Example (JSONP): http://127.0.0.1/location/46.19.37.108?callback=getgeoip

License

Telize is released under the BSD 2-Clause license. See LICENSE file
for details.

Author

Telize is developed by Frederic Cambus.

Resources

Project homepage: https://www.telize.com

Latest tarball release: https://www.statdns.com/telize/telize-2.0.0.tar.gz

GitHub: https://github.com/fcambus/telize

主要指標

概覽
名稱與所有者fcambus/telize
主編程語言Go
編程語言C (語言數: 1)
平台
許可證BSD 2-Clause "Simplified" License
所有者活动
創建於2013-08-21 11:26:52
推送於2023-11-28 09:48:03
最后一次提交2023-11-28 10:47:47
發布數12
最新版本名稱3.1.1 (發布於 )
第一版名稱1.01 (發布於 )
用户参与
星數865
關注者數46
派生數137
提交數317
已啟用問題?
問題數25
打開的問題數2
拉請求數2
打開的拉請求數0
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?