summaryrefslogtreecommitdiffstats
path: root/2configs/bgt/download.binaergewitter.de.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2022-12-12 20:00:20 +0100
committermakefu <github@syntax-fehler.de>2022-12-12 20:00:20 +0100
commit3c128dcf1faff99b9ede1728054244104c836184 (patch)
tree56f43c3b819000dddcf3b1ca0894fae6f3b5972d /2configs/bgt/download.binaergewitter.de.nix
parentf3d8111deb98dfaab6e865b5ee83def5647169c0 (diff)
ma download.binaergewitter: logrotate new format
Diffstat (limited to '2configs/bgt/download.binaergewitter.de.nix')
-rw-r--r--2configs/bgt/download.binaergewitter.de.nix17
1 files changed, 7 insertions, 10 deletions
diff --git a/2configs/bgt/download.binaergewitter.de.nix b/2configs/bgt/download.binaergewitter.de.nix
index bd5dc5bf7..31da31a71 100644
--- a/2configs/bgt/download.binaergewitter.de.nix
+++ b/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