Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NoCloud-Auto-Installer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
NoCloud-Auto-Installer
Commits
7ca15a71
Commit
7ca15a71
authored
1 month ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
variable for max retry traefik, 15 by default
parent
b35fee4b
No related branches found
No related tags found
1 merge request
!24
Fail2ban max retry variable pour la jail traefik
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.env.sample
+4
-0
4 additions, 0 deletions
main.env.sample
upgrade/traefik_fail2ban.sh
+1
-0
1 addition, 0 deletions
upgrade/traefik_fail2ban.sh
with
5 additions
and
0 deletions
main.env.sample
+
4
−
0
View file @
7ca15a71
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
upgrade/traefik_fail2ban.sh
+
1
−
0
View file @
7ca15a71
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment