ansible-role-nginx/defaults/main/logrotate.yml

16 lines
324 B
YAML
Raw Permalink Normal View History

2020-05-19 22:51:08 +02: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