mirror of
https://github.com/YunoHost-Apps/wallabag2_ynh.git
synced 2024-10-01 13:35:06 +02:00
Improve regex - install
This allow empty username (not possible, but may still block some extra brute force spammers) and username with spaces
This commit is contained in:
parent
e232b25542
commit
de6ddbbd1e
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ mkdir -p "/var/www/$app/var/logs/"
|
||||||
touch "/var/www/$app/var/logs/prod.log"
|
touch "/var/www/$app/var/logs/prod.log"
|
||||||
chown $app: "/var/www/$app/var/logs/prod.log"
|
chown $app: "/var/www/$app/var/logs/prod.log"
|
||||||
# Add fail2ban config
|
# Add fail2ban config
|
||||||
ynh_add_fail2ban_config --logpath="/var/www/$app/var/logs/prod.log" --failregex='app.ERROR: Authentication failure for user "[\w]", from IP "<HOST>"' --max_retry=5
|
ynh_add_fail2ban_config --logpath="/var/www/$app/var/logs/prod.log" --failregex='app.ERROR: Authentication failure for user "([\w]+)?", from IP "<HOST>"' --max_retry=5
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue