fail2ban support

This commit is contained in:
bunkerity
2020-04-07 23:13:59 +02:00
parent 716e54e597
commit 193070b148
7 changed files with 65 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
# /etc/nginx/nginx.conf
# do not run as daemon
daemon off;
# run as daemon
daemon on;
# do NOT run as root
user nginx;
@@ -61,8 +61,8 @@ http {
# enable/disable sending nginx version
server_tokens %SERVER_TOKENS%;
# display standard logs on stdout
access_log /dev/stdout;
# where to write logs
access_log /var/log/access.log;
# server config
include /etc/nginx/server.conf;

View File

@@ -22,5 +22,6 @@ server {
%BLOCK_TOR_EXIT_NODE%
%COOKIE_FLAGS%
%ERRORS%
%USE_FAIL2BAN%
include /server-confs/*.conf;
}