log - add LOG_LEVEL variable

This commit is contained in:
florian
2021-05-18 21:51:13 +02:00
parent 73543f4b0e
commit 96db3a450d
5 changed files with 11 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ http {
# write logs to local syslog
log_format logf '%LOG_FORMAT%';
access_log /var/log/access.log logf;
error_log /var/log/error.log info;
error_log /var/log/error.log %LOG_LEVEL%;
# temp paths
proxy_temp_path /tmp/proxy_temp;

View File

@@ -9,7 +9,7 @@ local bad_behavior_count_time = %BAD_BEHAVIOR_COUNT_TIME%
local bad_behavior_ban_time = %BAD_BEHAVIOR_BAN_TIME%
if use_bad_behavior then
behavior.count(bad_behavior_status_code, bad_behavior_threshold, bad_behavior_count_time, bad_behavior_ban_time)
behavior.count(bad_behavior_status_codes, bad_behavior_threshold, bad_behavior_count_time, bad_behavior_ban_time)
end
}