mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fail2ban fix when MULTISITE=yes
This commit is contained in:
parent
e350a717ff
commit
2f23671c3b
1 changed files with 1 additions and 2 deletions
|
|
@ -517,8 +517,7 @@ fi
|
|||
|
||||
# fail2ban
|
||||
if [ "$USE_FAIL2BAN" = "yes" ] ; then
|
||||
echo "" > ${NGINX_PREFIX}fail2ban-ip.conf
|
||||
replace_in_file "${NGINX_PREFIX}server.conf" "%USE_FAIL2BAN%" "include ${NGINX_PREFIX}fail2ban-ip.conf;"
|
||||
replace_in_file "${NGINX_PREFIX}server.conf" "%USE_FAIL2BAN%" "include /etc/nginx/fail2ban-ip.conf;"
|
||||
else
|
||||
replace_in_file "${NGINX_PREFIX}server.conf" "%USE_FAIL2BAN%" ""
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue