From bd3a13b2a5c047893853d12220825bf45a18e667 Mon Sep 17 00:00:00 2001 From: chaptergy Date: Fri, 18 Jun 2021 10:43:56 +0200 Subject: [PATCH] Also rotate other logs --- docker/rootfs/etc/logrotate.d/nginx-proxy-manager | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docker/rootfs/etc/logrotate.d/nginx-proxy-manager b/docker/rootfs/etc/logrotate.d/nginx-proxy-manager index 9c27380..5afcaf1 100644 --- a/docker/rootfs/etc/logrotate.d/nginx-proxy-manager +++ b/docker/rootfs/etc/logrotate.d/nginx-proxy-manager @@ -22,4 +22,17 @@ postrotate /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true endscript -} \ No newline at end of file +} + +/data/logs/*.log /data/logs/*[!_error].log /data/logs/*[!_access].log { + create 0644 root root + weekly + rotate 5 + missingok + notifempty + compress + sharedscripts + postrotate + /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true + endscript +}