print error when permissions are wrong on common volumes

This commit is contained in:
bunkerity
2021-04-09 14:54:15 +02:00
parent c03d410b0a
commit aa614f82f9
4 changed files with 38 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ end
-- check if user-agent is allowed
if use_user_agent and ngx.var.bad_user_agent == "yes" then
local block = false
for k, v in pairs(whitelist_user_agent) then
if string.match(ngx.var.http_user_agent, v) then
ngx.log(ngx.WARN, "[ALLOW] User-Agent " .. ngx.var.http_user_agent .. " is whitelisted")