mirror of
https://github.com/YunoHost-Apps/wallabag2_ynh.git
synced 2024-10-01 13:35:06 +02:00
Add fail2ban config during upgrade
To make sure any older version will get fail2ban support
This commit is contained in:
parent
32c04b1a4e
commit
1ae54d4a8d
1 changed files with 4 additions and 1 deletions
|
@ -113,6 +113,9 @@ exec_console $app "${final_path}" cache:clear
|
|||
# Configure Wallabag instance URL
|
||||
ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_user" <<< "UPDATE craue_config_setting SET value = 'https://$domain$path_url' WHERE name = 'wallabag_url'"
|
||||
|
||||
# Set-up fail2ban
|
||||
ynh_add_fail2ban_config --logpath="/var/www/$app/var/logs/prod.log" --failregex="app.ERROR: Authentication failure" --max_retry=5 # same as install config
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
@ -139,4 +142,4 @@ ynh_app_setting_set "$app" unprotected_uris "/"
|
|||
# RELOAD NGINX
|
||||
#=================================================
|
||||
systemctl restart php5-fpm
|
||||
systemctl reload nginx
|
||||
systemctl reload nginx
|
||||
|
|
Loading…
Add table
Reference in a new issue