modularized traefik log rotatation config

This commit is contained in:
beatzaplenty committed 2026-07-13 01:05:44 +10:00
1 parent 3d42dee0bf
commit da75a23700
2 files changed
+35 -14

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
{ ... }:
{
services.logrotate = {
enable = true;
settings = {
"/mnt/docker-volumes/traefik-data/logs/*.log" = {
daily = true;
size = "100M";
rotate = 20;
compress = true;
missingok = true;
notifempty = true;
copytruncate = true;
};
};
};
}