diff --git a/contrib/ip_blacklist/ip_blacklist_conf.lua b/contrib/ip_blacklist/ip_blacklist_conf.lua new file mode 100644 index 0000000..07f6157 --- /dev/null +++ b/contrib/ip_blacklist/ip_blacklist_conf.lua @@ -0,0 +1,151 @@ +--[[ + +¡ ¡ ¡ ALL GLORY TO GLORIA ! ! ! +=========================== + + +--]] + + + +local _M = { + author='Mikhail Che ', + version='0.14', + redis_sock = 'unix:/tmp/redis.sock', -- redis.conf: unixsocketperm 777!!! +--~ or +--~ redis_host = "127.0.0.1", +--~ redis_port = 6379, + redis_timeout = 200,-- connection timeout for redis in ms. don't set this too high! + redis_poolsize = 15, -- maximal size of the pool. Puts the current Redis connection immediately into the ngx_lua cosocket connection pool. + redis_keepalive = 0, -- ms. (0 - persistent) You can specify the max idle timeout (in ms) when the connection is in the pool and the maximal size of the pool every nginx worker process. + prefix = "ip_blacklist", -- for Redis keys and for log strings + key_delim = ':', -- for join Redis keys + --[[ + There are four types of Redis keys: + 1. Counter: :count: