diff options
author | makefu <github@syntax-fehler.de> | 2022-12-12 20:00:20 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2022-12-12 20:00:20 +0100 |
commit | 6c391d7361240671b9165b7092105a1bf86517a0 (patch) | |
tree | 4d314d8de428cc1703ac8a38541a2cd372071d12 /makefu/2configs | |
parent | ce30f4b31833062f328d2bda3a82bfc1425a6471 (diff) |
ma download.binaergewitter: logrotate new format
Diffstat (limited to 'makefu/2configs')
-rw-r--r-- | makefu/2configs/bgt/download.binaergewitter.de.nix | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/makefu/2configs/bgt/download.binaergewitter.de.nix b/makefu/2configs/bgt/download.binaergewitter.de.nix index bd5dc5bf7..31da31a71 100644 --- a/makefu/2configs/bgt/download.binaergewitter.de.nix +++ b/makefu/2configs/bgt/download.binaergewitter.de.nix @@ -43,16 +43,13 @@ in { services.logrotate = { enable = true; - settings.header = '' - ${bgtaccess} ${bgterror} { - rotate 5 - weekly - create 600 nginx nginx - postrotate - ${pkgs.systemd}/bin/systemctl reload nginx - endscript - } - ''; + settings.bgt = { + files = [ bgtaccess bgterror ]; + rotate = 5; + frequency = "weekly"; + create = "600 nginx nginx"; + postrotate = "${pkgs.systemd}/bin/systemctl reload nginx"; + }; }; # 20.09 unharden nginx to write logs |