Add logrotate (#25)
All checks were successful
Build Image / Validate Image (push) Successful in 36s
Build Tagged Release Image / Build Image (push) Successful in 5m14s
Build Image / Publish Image (push) Successful in 4m57s
Build Image / Notify (push) Successful in 2s
Build Tagged Release Image / Create Release (push) Successful in 52s
Build Tagged Release Image / Notify (push) Successful in 2s
All checks were successful
Build Image / Validate Image (push) Successful in 36s
Build Tagged Release Image / Build Image (push) Successful in 5m14s
Build Image / Publish Image (push) Successful in 4m57s
Build Image / Notify (push) Successful in 2s
Build Tagged Release Image / Create Release (push) Successful in 52s
Build Tagged Release Image / Notify (push) Successful in 2s
Adds logrotate, running every day at 00:00. Rotates `letsencrypt.log`, keeping 10 versions. Rotates `renew.log` at 100 megabytes Closes #10 Reviewed-on: #25 Co-authored-by: MrMeeb <mrmeeb@noreply.git.mrmeeb.stream> Co-committed-by: MrMeeb <mrmeeb@noreply.git.mrmeeb.stream>
This commit is contained in:
15
root/logrotate.conf
Normal file
15
root/logrotate.conf
Normal file
@ -0,0 +1,15 @@
|
||||
missingok
|
||||
|
||||
/config/logs/letsencrypt.log {
|
||||
daily
|
||||
rotate 10
|
||||
postrotate
|
||||
find /config/logs -type f -regex '.*letsencrypt\.log\.\(.[2-9]\|[2-9].\|[1-9][0-9]\{2,\}\).*' -delete
|
||||
endscript
|
||||
}
|
||||
|
||||
/config/logs/renew.log {
|
||||
rotate 5
|
||||
size 100k
|
||||
compress
|
||||
}
|
Reference in New Issue
Block a user