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