ma download.binaergewitter: logrotate new format

This commit is contained in:
makefu 2022-12-12 20:00:20 +01:00
parent ce30f4b318
commit 6c391d7361
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -43,16 +43,13 @@ in {
services.logrotate = { services.logrotate = {
enable = true; enable = true;
settings.header = '' settings.bgt = {
${bgtaccess} ${bgterror} { files = [ bgtaccess bgterror ];
rotate 5 rotate = 5;
weekly frequency = "weekly";
create 600 nginx nginx create = "600 nginx nginx";
postrotate postrotate = "${pkgs.systemd}/bin/systemctl reload nginx";
${pkgs.systemd}/bin/systemctl reload nginx };
endscript
}
'';
}; };
# 20.09 unharden nginx to write logs # 20.09 unharden nginx to write logs