1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00
This commit is contained in:
ericgaspar 2021-06-24 14:03:14 +02:00
parent 3d7a363b9c
commit c611f7a0d6
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 10 additions and 2 deletions

View file

@ -125,13 +125,18 @@ done
$php_exec fos:user:promote --super "$admin"
#=================================================
# CONFIGURE FAIL2BAN
# CONFIGURE LOG
#=================================================
# Create the log file is not already existing during install
mkdir -p "$final_path/var/logs/"
touch "$final_path/var/logs/prod.log"
chown $app: "$final_path/var/logs/prod.log"
#=================================================
# CONFIGURE FAIL2BAN
#=================================================
# Add fail2ban config
ynh_add_fail2ban_config --logpath="$final_path/var/logs/prod.log" --failregex='app.ERROR: Authentication failure for user "([\w]+)?", from IP "<HOST>"' --max_retry=5

View file

@ -125,7 +125,10 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..."
# Create a dedicated php-fpm config
ynh_add_fpm_config --package="$extra_php_dependencies"
# Add fail2ban config
#=================================================
# CONFIGURE FAIL2BAN
#=================================================
ynh_add_fail2ban_config --logpath="$final_path/var/logs/prod.log" --failregex='app.ERROR: Authentication failure for user "([\w]+)?", from IP "<HOST>"' --max_retry=5 # same as install config
#=================================================