From 3156f22c5f3c6f193b4abb1bdb8b46c6002e741d Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Mon, 2 Oct 2023 00:40:36 +0200
Subject: [PATCH] download.binaergewitter: access logs are now automatically
 rotated by logrotate

---
 2configs/bgt/download.binaergewitter.de.nix | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/2configs/bgt/download.binaergewitter.de.nix b/2configs/bgt/download.binaergewitter.de.nix
index b6c3a79..16ca126 100644
--- a/2configs/bgt/download.binaergewitter.de.nix
+++ b/2configs/bgt/download.binaergewitter.de.nix
@@ -48,13 +48,14 @@ in {
 
   services.logrotate = {
     enable = true;
-    settings.bgt = {
-      files = [ bgtaccess bgterror ];
-      rotate = 5;
-      frequency = "weekly";
-      create = "600 nginx nginx";
-      postrotate = "${pkgs.systemd}/bin/systemctl reload nginx";
-    };
+    # now part of generic logrotate of nginx
+    #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