项目作者: loafoe

项目描述 :
Kong plugin implementing geofencing
高级语言: Go
项目地址: git://github.com/loafoe/kong-plugin-geofence.git
创建时间: 2021-09-21T05:15:27Z
项目社区:https://github.com/loafoe/kong-plugin-geofence

开源协议:MIT License

下载


kong-plugin-geofence

Kong plugin implementing geofencing. Supports fencing at Country level currently. The plugin
uses the excellent MaxMind GeoIP2 or GeoLite2 databases.
The configured license_key will allow the plugin to download the database on-the-fly.

Kong environment

  1. KONG_PLUGINS = "geofence,bundled"
  2. KONG_PLUGINSERVER_NAMES = "geofence"
  3. KONG_PLUGINSERVER_GEOFENCE_START_CMD = "/usr/local/bin/geofence"
  4. KONG_PLUGINSERVER_GEOFENCE_QUERY_CMD = "/usr/local/bin/geofence -dump"

Kong configuration

Declarative

  1. plugins:
  2. - name: geofence
  3. config:
  4. license_key: XXX
  5. countries_allow_list:
  6. - NL
  7. - SR

fields

  • config.license_key - (Required) The MaxMind license key to use
  • config.countries_allow_list - (Optional) The list of country ISO codes to allow
  • config.countries_deny_list - (Optional) The list of country ISO codes to deny

license

License is MIT