diff --git a/scripts/install b/scripts/install index df45cc7..a9b4c47 100644 --- a/scripts/install +++ b/scripts/install @@ -65,7 +65,7 @@ yunohost service add $app --description="Home Assistant server" --log="$log_file ynh_use_logrotate --logfile="$log_file" # Create a dedicated Fail2Ban config -ynh_add_fail2ban_config --logpath="$log_file" --failregex="Login attempt or request with invalid authentication from " +ynh_add_fail2ban_config --logpath="$log_file" --failregex="[homeassistant.components.http.ban] Login attempt or request with invalid authentication from .* Requested URL: ./auth/" # Grant sudo permissions to the user to manage his own systemd service myynh_create_dir "/etc/sudoers.d" diff --git a/scripts/upgrade b/scripts/upgrade index ca76d40..4ba196a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -49,7 +49,7 @@ yunohost service add $app --description="Home Assistant server" --log="$log_file ynh_use_logrotate --logfile="$log_file" --non-append -ynh_add_fail2ban_config --logpath="$log_file" --failregex="Login attempt or request with invalid authentication from " +ynh_add_fail2ban_config --logpath="$log_file" --failregex="[homeassistant.components.http.ban] Login attempt or request with invalid authentication from .* Requested URL: ./auth/" #================================================= # RECONFIGURE THE APP (UPDATE CONF, APPLY MIGRATIONS, ...)