modularized traefik log rotatation config
Check NixOS configurations / eval-hosts (push) Failing after 53m51s

This commit is contained in:
2026-07-13 01:05:44 +10:00
parent 20dc28069c
commit bc719afe39
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;
};
};
};
}