Skip to content
Snippets Groups Projects

Fail2ban max retry variable pour la jail traefik

2 files
+ 5
0
Compare changes
  • Side-by-side
  • Inline

Files

+ 11
0
#!/bin/bash
DIR=$(realpath $(dirname $0)/..)
if [ ! -e $DIR/main.env ]
then
echo "Please copy in root of NoCloud Auto Installer main.env.sample to main.env and edit it"
exit 1
else
echo "Environment file loaded"
fi
. $DIR/main.env
cat <<EOF > /etc/fail2ban/jail.d/nocloud_traefik.conf
[traefik-auth]
enabled = true
logpath = /home/dockerweb/traefik/log/access.log
chain = DOCKER-USER
maxretry = ${FAIL2BAN_TRAEFIK_MAXRETRY:-15}
mode = aggressive
findtime = 4h
banaction = docker-page
Loading