Skip to content
Snippets Groups Projects
Commit 7ca15a71 authored by Elian Loraux's avatar Elian Loraux
Browse files

variable for max retry traefik, 15 by default

parent b35fee4b
Branches
No related tags found
1 merge request!24Fail2ban max retry variable pour la jail traefik
This commit is part of merge request !24. Comments created here will be created in the context of that merge request.
......@@ -36,6 +36,10 @@ export NEXTCLOUD_DATABASE_NAME="nextcloud"
# Week for logrotate, by default 4 week
export LOGROTATE=4
# Fail2ban variables
# maxretry for traefik jail for fail2ban
export FAIL2BAN_TRAEFIK_MAXRETRY=15 # 15 by default
# Monit variables
# CPU and RAM overload time is in monit cycle. 1 cycle = 2 minutes
export CPU_OVERLOAD_TIME=30 # 1h by default
......
......@@ -5,6 +5,7 @@ cat <<EOF > /etc/fail2ban/jail.d/nocloud_traefik.conf
enabled = true
logpath = /home/dockerweb/traefik/log/access.log
chain = DOCKER-USER
maxretry = ${FAIL2BAN_TRAEFIK_MAXRETRY:-15}
mode = aggressive
findtime = 4h
banaction = docker-page
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment