codeforcroatia / imamopravoznati

Provide a Freedom of Information request system for your jurisdiction
http://alaveteli.org
Other
3 stars 1 forks source link

Fix/Update LogRotate definitions #96

Open schlos opened 3 years ago

schlos commented 3 years ago

Expected Behavior

See instructions here: https://groups.google.com/g/alaveteli-dev/c/LYBswe_SCn8 https://alaveteli.org/docs/installing/email/#configure-logrotate

Current Behavior

Previous implementation was done via #43.

Possible Solution

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment

schlos commented 2 years ago

Added alaveteli logrotate configuration:

# Alaveteli deafult logrotate
# For more info see https://groups.google.com/g/alaveteli-dev/c/LYBswe_SCn8/m/NsZtgP8dAAAJ
#
#/var/www/www.site.com/alaveteli/log/*.log /var/www/www.site.com/alaveteli/log/*_log {
#  daily
#  missingok
#
#  rotate 60
#
#  compress
#  delaycompress
#  notifempty
#  copytruncate
#}

/data/www/imamopravoznati.org/alaveteli/log/*.log /data/www/imamopravoznati.org/alaveteli/log/*_log {
  daily
  missingok

  rotate 60

  compress
  delaycompress
  notifempty
  copytruncate

  dateext
  #size 10M
  #mail REDACTED@REDACTED.TLD
}

/etc/logrotate.d/alaveteli (END)