Authored by chunhua.zhang

add

# only allow local ip
allow 10.66.0.0/16;
allow 10.67.0.0/16;
allow 192.168.0.0/16;
allow 172.31.0.0/16;
allow 127.0.0.1;
deny all;
\ No newline at end of file
set $real_ip "";
set_by_lua_file $real_ip conf/setup.lua;
access_by_lua_file 'conf/lua/limit_local_access.lua';
... ...
## review controller
server {
# only allow local
set $real_ip "";
set_by_lua_file $real_ip conf/setup.lua;
access_by_lua_file 'conf/lua/limit_local_access.lua';
include ./local.access.conf;
listen 80;
server_name search.yohoops.org;
access_log /Data/logs/nginx/search_access.log fenxi;
... ...