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