public-health-ch/ansible/roles/nginxinc.nginx/defaults/main/logrotate.yml

16 lines
324 B
YAML
Raw Normal View History

2021-02-20 14:00:27 +00:00
---
# Create custom logrotate config
nginx_logrotate_conf_enable: false
nginx_logrotate_conf:
paths:
- "/var/log/nginx/*.log"
options:
- daily
- missingok
- rotate 14
- compress
- delaycompress
- notifempty
- create 0644 www-data adm # Changes nginx logs permissions
- sharedscripts