modularized traefik log rotatation config

This commit is contained in:
2026-07-13 01:05:44 +10:00
parent 3d42dee0bf
commit da75a23700
2 changed files with 35 additions and 14 deletions
+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;
};
};
};
}