Browse Source

Add fail2ban rules

pull/40/head
Rafi59 9 years ago
committed by GitHub
parent
commit
2dbdd9bf7a
  1. 6
      scripts/install

6
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"
ynh_use_logrotate "/home/yunohost.app/nextcloud/data/nextcloud.log"
Loading…
Cancel
Save