From cdf3fb71e8668b6445cb5d71eb82baff2de0a626 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sun, 11 Jun 2017 13:44:26 +0200 Subject: [PATCH] Add fail2ban rules --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 22c169f..ee3b7be 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -209,6 +209,10 @@ sudo chmod 755 /home/yunohost.app ynh_app_setting_set "$real_app" unprotected_uris "/" ynh_app_setting_set "$real_app" skipped_regex \ "$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*" + +# Add fail2ban rules +sudo cp ../conf/nextcloud_fail2ban.conf /etc/fail2ban/filter.d/ +sudo cp ../conf/jail_nextcloud.local /etc/fail2ban/jail.d/ # Reload services sudo service php5-fpm restart || true