From 754d36818c85925b36e0de03e81d22473eb5b7ad Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 19:41:47 +0100 Subject: ma download.binaergewitter: fix logrotate --- makefu/2configs/bgt/download.binaergewitter.de.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makefu/2configs/bgt/download.binaergewitter.de.nix') diff --git a/makefu/2configs/bgt/download.binaergewitter.de.nix b/makefu/2configs/bgt/download.binaergewitter.de.nix index d49ad158b..bd5dc5bf7 100644 --- a/makefu/2configs/bgt/download.binaergewitter.de.nix +++ b/makefu/2configs/bgt/download.binaergewitter.de.nix @@ -43,7 +43,7 @@ in { services.logrotate = { enable = true; - config = '' + settings.header = '' ${bgtaccess} ${bgterror} { rotate 5 weekly -- cgit v1.2.3 From 6c391d7361240671b9165b7092105a1bf86517a0 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Dec 2022 20:00:20 +0100 Subject: ma download.binaergewitter: logrotate new format --- makefu/2configs/bgt/download.binaergewitter.de.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'makefu/2configs/bgt/download.binaergewitter.de.nix') 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 -- cgit v1.2.3