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
f4d44085
Commit
f4d44085
authored
2 months ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
add traefik logrotate
parent
4ca19d6f
No related branches found
No related tags found
1 merge request
!23
add traefik logrotate
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
install/Traefik.sh
+15
-0
15 additions, 0 deletions
install/Traefik.sh
main.env.sample
+3
-0
3 additions, 0 deletions
main.env.sample
upgrade/Traefik.sh
+15
-0
15 additions, 0 deletions
upgrade/Traefik.sh
with
33 additions
and
0 deletions
install/Traefik.sh
+
15
−
0
View file @
f4d44085
...
...
@@ -21,6 +21,21 @@ if [ -z "$(docker network ls | grep -w traefik)" ]; then
docker network create traefik
--subnet
172.19.0.1/24
fi
# Logrotate traefik
cat
<<
EOF
> /etc/logrotate.d/traefik
/home/dockerweb/traefik/log/access.log {
weekly
rotate
${
LOGROTATE
:-
4
}
compress
# Do not rotate if empty
notifempty
delaycompress
missingok
}
EOF
mkdir
-p
/home/dockerweb/
# Ajout de la clé maintenance
...
...
This diff is collapsed.
Click to expand it.
main.env.sample
+
3
−
0
View file @
f4d44085
...
...
@@ -32,6 +32,9 @@ export EXTRAS_SERVICES_TO_RESTART="systemd-logind"
export DOLIBARR_DB="dolibarr"
export NEXTCLOUD_DATABASE_NAME="nextcloud"
# logrotate variables
# Week for logrotate, by default 4 week
export LOGROTATE=4
# Monit variables
# CPU and RAM overload time is in monit cycle. 1 cycle = 2 minutes
...
...
This diff is collapsed.
Click to expand it.
upgrade/Traefik.sh
+
15
−
0
View file @
f4d44085
...
...
@@ -21,6 +21,21 @@ if [ ! -e "$order_systemd_file" ]; then
fi
systemctl
enable
docker-order
# Logrotate traefik
cat
<<
EOF
> /etc/logrotate.d/traefik
/home/dockerweb/traefik/log/access.log {
weekly
rotate
${
LOGROTATE
:-
4
}
compress
# Do not rotate if empty
notifempty
delaycompress
missingok
}
EOF
# Services maintenance
cd
/home/dockerweb
...
...
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