ma download.binaergewitter: logrotate new format
This commit is contained in:
parent
ce30f4b318
commit
6c391d7361
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user