hi: https://github.com/anjia0532/lua-resty-maxminddb
We can use this library, it is a solution that supports hot reloading and does not need to rebuild OpenResty. On Fri, Sep 10, 2021 at 4:10 PM kushal kothari <[email protected]> wrote: > Hi community, > > Understanding the GeoIP data for an incoming request is a common use case > for many API GWs. I think Apisix should support natively adding the "GeoIP2 > NGINX module". Currently, the only way to do that is to build it ourselves. > > For reference, have a look at this issue: [1] > > Also, GeoIP( not Geoip2) NGINX module only works with the legacy database > format and MaxMind seems to stop the legacy format from being publicly > available in 2019 as it will be officially unsupported [2] in around a > year. We should probably go with " the geoip2 module "[3] instead, and it's > officially supported by Nginx as we can find the geoip2 module in Nginx doc > [4], so it is definitely supported . I think GeoIP2 support would be a good > feature for Apisix. > > [1] : https://github.com/apache/apisix/issues/3946#issuecomment-810 > > [2] : > > https://blog.maxmind.com/2020/06/01/retirement-of-geoip-legacy-downloadable-databases-in-may-2022/ > > [3] https://github.com/leev/ngx_http_geoip2_module > > [4] https://www.nginx.com/products/nginx/modules/geoip2/ > > Would love to know the inputs/suggestions from the community ! > -- *MembPhis* My GitHub: https://github.com/membphis Apache APISIX: https://github.com/apache/apisix
