req limit

This commit is contained in:
bunkerity
2020-10-02 12:01:30 +02:00
parent 44155b5d62
commit eba5f6280e
4 changed files with 40 additions and 3 deletions

View File

@@ -69,6 +69,9 @@ http {
lua_package_path "/usr/local/lib/lua/?.lua;;";
%DNSBL_CACHE%
# shared memory zone for limit_req
%LIMIT_REQ_ZONE%
# server config
include /etc/nginx/server.conf;

View File

@@ -11,6 +11,7 @@ server {
{
return 405;
}
%LIMIT_REQ%
%DNSBL%
%AUTH_BASIC%
%USE_PHP%