mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
Update README
This commit is contained in:
@@ -4,7 +4,7 @@ Used the Redis storage only.
|
|||||||
Monitoring blacklist on redis-cli: lrange ip_blacklist 0 -1
|
Monitoring blacklist on redis-cli: lrange ip_blacklist 0 -1
|
||||||
|
|
||||||
Requires
|
Requires
|
||||||
=======
|
========
|
||||||
|
|
||||||
Requires openresty bundle http://openresty.org/ (tested on openresty/1.5.8.1)
|
Requires openresty bundle http://openresty.org/ (tested on openresty/1.5.8.1)
|
||||||
or ngx-lua module http://wiki.nginx.org/HttpLuaModule#Installation
|
or ngx-lua module http://wiki.nginx.org/HttpLuaModule#Installation
|
||||||
@@ -12,7 +12,7 @@ Requires openresty bundle http://openresty.org/ (tested on openresty/1.5.8.1)
|
|||||||
|
|
||||||
|
|
||||||
Configure
|
Configure
|
||||||
========
|
=========
|
||||||
|
|
||||||
Change settings on ip_blacklist_conf.lua (see options desciption in file):
|
Change settings on ip_blacklist_conf.lua (see options desciption in file):
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ Debug: <bool> for log INFO messages into nginx.log
|
|||||||
Log lock: <bool> persistent log list when locking IPs
|
Log lock: <bool> persistent log list when locking IPs
|
||||||
|
|
||||||
Replace the system distribution nginx with local installation of openresty
|
Replace the system distribution nginx with local installation of openresty
|
||||||
====================================================
|
==========================================================================
|
||||||
|
|
||||||
Install latest openresty on default location usr/local/openresty.
|
Install latest openresty on default location usr/local/openresty.
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ cp ip_blacklist_conf.lua /etc/nginx/lua/
|
|||||||
cp ip_blacklist.lua /etc/nginx/lua/
|
cp ip_blacklist.lua /etc/nginx/lua/
|
||||||
|
|
||||||
Configure NGINX
|
Configure NGINX
|
||||||
================
|
===============
|
||||||
|
|
||||||
Add one line to http section:
|
Add one line to http section:
|
||||||
lua_package_path "/etc/nginx/lua/?.lua;;";
|
lua_package_path "/etc/nginx/lua/?.lua;;";
|
||||||
|
|||||||
Reference in New Issue
Block a user