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:
parent
13c8f91fd3
commit
2dbdd9bf7a
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue