From 2dbdd9bf7abbe328e18b847acf541532ecf45bcb Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sun, 11 Jun 2017 13:32:48 +0200 Subject: [PATCH] Add fail2ban rules --- scripts/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index bc56e53..694bd9c 100755 --- a/scripts/install +++ b/scripts/install @@ -175,6 +175,10 @@ ynh_app_setting_set "$app" unprotected_uris "/" ynh_app_setting_set "$app" skipped_regex \ "$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*" + +# Set fail2ban rules +sudo cp ../conf/nextcloud_fail2ban.conf /etc/fail2ban/filter.d/nextcloud.conf + # Reload services sudo service php5-fpm restart || true sudo service nginx reload || true @@ -188,4 +192,4 @@ sudo chmod 644 "$cron_path" _exec_occ background:cron # Setup log rotation -ynh_use_logrotate "/home/yunohost.app/nextcloud/data/nextcloud.log" \ No newline at end of file +ynh_use_logrotate "/home/yunohost.app/nextcloud/data/nextcloud.log"