ipinfo.tw
ipinfo.tw copied to clipboard
Add IP lookup feature
User description
- Add new
map.conffor IP-to-location mapping - Update
nginx.confto increasemap_hash_bucket_sizeto handle larger maps - Update
geoip2.confto define variables for IP address lookup - Update
ipinfo.confto add location blocks for /lookup routing
PR Type
Enhancement, Documentation
Description
-
Introduce IP lookup feature via
/lookupendpoint- Adds support for querying info for arbitrary IPs
- Returns country, ASN, and user agent details
-
Update NGINX configuration for IP mapping and lookup variables
- Adds
map.conffor argument-based IP selection - Extends
geoip2.conffor lookup variables - Adds
/lookuplocation block inipinfo.conf - Increases
map_hash_bucket_sizeinnginx.conf
- Adds
-
Update documentation to describe new lookup feature
Changes walkthrough 📝
| Relevant files | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Documentation |
| ||||||||
| Enhancement |
|
Need help?
Type /help how to ...in the comments thread for any questions about Qodo Merge usage.Check out the documentation for more information.
Summary by CodeRabbit
-
New Features
- Introduced a new /lookup endpoint that returns IP address, country, and ASN information for a specified IP or the client’s IP by default.
-
Documentation
- Updated documentation to include details and example usage of the new /lookup endpoint.