1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Add fail2ban rules

This commit is contained in:
Rafi59 2017-06-11 13:32:48 +02:00 committed by GitHub
parent 13c8f91fd3
commit 2dbdd9bf7a

View file

@ -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"