From b23312dcaaca44406a376a15e14c3c35504fdb0e Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 10 Dec 2024 15:53:06 +0100 Subject: [PATCH] feat(dgn-web): Add yearly logrotate for nginx --- modules/nixos/dgn-web.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/nixos/dgn-web.nix b/modules/nixos/dgn-web.nix index ca99a67..cfc9682 100644 --- a/modules/nixos/dgn-web.nix +++ b/modules/nixos/dgn-web.nix @@ -110,6 +110,9 @@ in dgn-web.internalPorts = mapAttrs (_: getAttr "port") cfg.simpleProxies; + # Keep logs during 1 year (53 weeks) + services.logrotate.settings.nginx.rotate = 53; + services.nginx = { enable = true; -- 2.47.0