#how to in nginx.conf
-
- set a lua shared DICT called waf inside nginx
-
- initialize a variable called $postctl
set $postctl 10 <- 10 sec between posts
-
- initialize access control
access_by_lua_file waf.lua;
#a reload is required each time you change $postctl value inside nginx.conf