/var/log/unifi/server.log {
  monthly
  maxage 365
  compress
  missingok
  copytruncate
}
