1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

Create the logfile, required before configuring fail2ban

This commit is contained in:
OniriCorpe 2023-09-10 23:16:52 +02:00
parent 736d548f1a
commit 84e8921a18

View file

@ -289,6 +289,9 @@ ynh_use_logrotate
#=================================================
ynh_script_progression --message="Configuring fail2ban..." --weight=1
# Create the logfile, required before configuring fail2ban
touch "/var/log/${app}/${app}.log"
# Create a dedicated Fail2Ban config
ynh_add_fail2ban_config --logpath="/var/log/${app}/${app}.log" --failregex="statusCode=401 path=/auth/sign_in clientIP=<HOST> .* msg=\"Unauthorized:" --max_retry=5