logrotate config

This commit is contained in:
Ulf Gebhardt 2022-01-17 11:09:22 +01:00
parent b94e59882d
commit ad1436aecd
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 12 additions and 1 deletions

View File

@ -74,10 +74,14 @@ sudo certbot
> Would you be willing, once your first certificate is successfully issued, to > N
> No names were found in your configuration files. Please enter in your domain > stage1.gradido.net
# Install logrotate
# sudo apt-get install -y logrotate
sudo envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $SCRIPT_DIR/logrotate/gradido.conf.template > /etc/logrotate.d/gradido.conf
# Webhooks (optional) (for development)
sudo apt install webhook
# TODO generate
# put hook into ithub
# put hook into github
# TODO adjust secret
# TODO adjust branch if needed
# https://stage1.gradido.net/hooks/github

View File

@ -0,0 +1,7 @@
$GRADIDO_LOG_PATH/* {
weekly
rotate 26
size 10M
compress
delaycompress
}