Browse Source

Also rotate other logs

chaptergy 4 năm trước cách đây
mục cha
commit
bd3a13b2a5
1 tập tin đã thay đổi với 14 bổ sung1 xóa
  1. 14 1
      docker/rootfs/etc/logrotate.d/nginx-proxy-manager

+ 14 - 1
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
-}
+}
+
+/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
+}