logrotate
This commit is contained in:
parent
6fd60a404c
commit
4e826915bd
|
@ -31,6 +31,8 @@ in {
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjPSt4TykAJgafU9Trk7sr9wzXhBZxawDIZir0CPyDN sako@sakopc"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjPSt4TykAJgafU9Trk7sr9wzXhBZxawDIZir0CPyDN sako@sakopc"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.logrotate.enable = true;
|
||||||
|
|
||||||
# anything can be a server, even a laptop
|
# anything can be a server, even a laptop
|
||||||
# any say against this is a lie and propaganda
|
# any say against this is a lie and propaganda
|
||||||
services.logind.lidSwitch = "ignore";
|
services.logind.lidSwitch = "ignore";
|
||||||
|
|
|
@ -28,5 +28,12 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.logrotate.settings.nginx = {
|
||||||
|
enable = true;
|
||||||
|
minsize = "50M";
|
||||||
|
rotate = "2";
|
||||||
|
compress = true;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue