mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
logrotate config
This commit is contained in:
parent
b94e59882d
commit
ad1436aecd
@ -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
|
||||
|
||||
7
deployment/bare_metal/logrotate/gradido.conf.template
Normal file
7
deployment/bare_metal/logrotate/gradido.conf.template
Normal file
@ -0,0 +1,7 @@
|
||||
$GRADIDO_LOG_PATH/* {
|
||||
weekly
|
||||
rotate 26
|
||||
size 10M
|
||||
compress
|
||||
delaycompress
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user