summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bgt/download.binaergewitter.de.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-13 14:51:58 +0100
committerlassulus <lassulus@lassul.us>2022-12-13 14:51:58 +0100
commit248d3f592adbe3f7567c25f8f7efc1045b25e216 (patch)
tree3f104763aa31b18fdbfc42d37cede13600e5ef94 /makefu/2configs/bgt/download.binaergewitter.de.nix
parent2ab781fca929451d1c8bc6da1b6caa6c89b7786a (diff)
parentd4281b3dbeb8452844ccb679839ad601b20fe64a (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/bgt/download.binaergewitter.de.nix')
-rw-r--r--makefu/2configs/bgt/download.binaergewitter.de.nix17
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 d49ad158b..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;
- config = ''
- ${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