File README.SUSE of Package lua-haproxy-geoip2

1. Install the Lua flavor of this package matching the Lua version the HAProxy package was build against (check `haproxy -vv`)
2. Modify /etc/haproxy/geoip.lua and
   - set the paths to your mmdb files
   - set the desired update interval (if no frequent updates of the files are needed, set this to 0 to avoid the need for insecure-fork-wanted!)
3. Place the following in the "global" section of your HAProxy configuration
     lua-load-per-thread /etc/haproxy/geoip.lua
     # if update interval was set to > 0
     # insecure-fork-wanted
4. Play with "lua.geoip2-lookup-city" et al. :-)
openSUSE Build Service is sponsored by