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 = {
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