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
7668c96ab6
commit
cdf3fb71e8
1 changed files with 4 additions and 0 deletions
|
@ -209,6 +209,10 @@ sudo chmod 755 /home/yunohost.app
|
||||||
ynh_app_setting_set "$real_app" unprotected_uris "/"
|
ynh_app_setting_set "$real_app" unprotected_uris "/"
|
||||||
ynh_app_setting_set "$real_app" skipped_regex \
|
ynh_app_setting_set "$real_app" skipped_regex \
|
||||||
"$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*"
|
"$(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
|
# Reload services
|
||||||
sudo service php5-fpm restart || true
|
sudo service php5-fpm restart || true
|
||||||
|
|
Loading…
Add table
Reference in a new issue