Commit 94217e22 by Jason Bau

fix nginx log rotation

parent 054e9607
......@@ -78,17 +78,11 @@
# Note that nginx logs to /var/log until it reads its configuration, so /etc/logrotate.d/nginx is still good
- name: nginx | Set up nginx access log rotation
- name: nginx | Set up nginx edx log rotation
template: >
dest=/etc/logrotate.d/nginx-access src=edx_logrotate_nginx_access.j2
dest=/etc/logrotate.d/nginx-edx src=edx_logrotate_nginx_access.j2
owner=root group=root mode=644
- name: nginx | Set up nginx error log rotation
template: dest=/etc/logrotate.d/nginx-error src=edx_logrotate_nginx_error.j2 owner=root group=root mode=644
tags:
- logging
- update
- name: nginx | Removing default nginx config (available)
file: path=/etc/nginx/sites-available/default state=absent
notify: nginx | reload nginx
......
# Put in place by ansible
{{ nginx_log_dir }}/access.log {
{{ nginx_log_dir }}/*.log {
create 0640 www-data syslog
compress
delaycompress
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment