docfast/logrotate-docfast
openclawd 76714d799e
Some checks failed
Deploy to Production / Deploy to Server (push) Failing after 22s
Fix: nginx duplicate MIME type, update version to 0.2.1, improve log rotation
- Remove duplicate text/html from nginx gzip_types (fixes nginx -t warning)
- Update hardcoded API version from 0.2.0 to 0.2.1 to match package.json
- Update logrotate config: daily rotation, 7 days retention, improved postrotate
- Add Docker logging configuration with size/file limits
2026-02-16 08:36:55 +00:00

13 lines
No EOL
283 B
Text

/var/log/docfast/*.log {
daily
rotate 7
compress
delaycompress
missingok
notifempty
create 644 root root
postrotate
# Restart docker container to reopen log files
docker restart docfast-docfast-1 >/dev/null 2>&1 || true
endscript
}