From f08fe78531d0856d70cadc8a3fedc9a25a6101ae Mon Sep 17 00:00:00 2001 From: lapineige Date: Wed, 1 May 2019 11:12:27 +0200 Subject: [PATCH] Improve regex - upgrade This allow empty username (not possible, but may still block some extra brute force spammers) and username with spaces --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index e85a871..756d011 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,7 +114,7 @@ exec_console $app "${final_path}" cache:clear ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_user" <<< "UPDATE craue_config_setting SET value = 'https://$domain$path_url' WHERE name = 'wallabag_url'" # Set-up fail2ban -ynh_add_fail2ban_config --logpath="/var/www/$app/var/logs/prod.log" --failregex='app.ERROR: Authentication failure for user "[\w]", from IP ""' --max_retry=5 # same as install config +ynh_add_fail2ban_config --logpath="/var/www/$app/var/logs/prod.log" --failregex='app.ERROR: Authentication failure for user "([\w]+)?", from IP ""' --max_retry=5 # same as install config #================================================= # NGINX CONFIGURATION