From 48f1d5627e375e5c277b44832b991a06faec849d Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 27 Aug 2021 03:55:18 -0400 Subject: [PATCH] add nginx logrotate configuration --- logrotate.d/nginx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 logrotate.d/nginx diff --git a/logrotate.d/nginx b/logrotate.d/nginx new file mode 100644 index 0000000..6ded4a2 --- /dev/null +++ b/logrotate.d/nginx @@ -0,0 +1,14 @@ +/var/log/nginx/*log { + missingok + notifempty + create 640 http log + sharedscripts + compress + postrotate + test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid` + endscript + daily + rotate 10 + maxage 10 + delaycompress +}