Skip to content

Commit bd3a13b

Browse files
committed
Also rotate other logs
1 parent 289d179 commit bd3a13b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docker/rootfs/etc/logrotate.d/nginx-proxy-manager

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,17 @@
2222
postrotate
2323
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
2424
endscript
25-
}
25+
}
26+
27+
/data/logs/*.log /data/logs/*[!_error].log /data/logs/*[!_access].log {
28+
create 0644 root root
29+
weekly
30+
rotate 5
31+
missingok
32+
notifempty
33+
compress
34+
sharedscripts
35+
postrotate
36+
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
37+
endscript
38+
}

0 commit comments

Comments
 (0)