Mitigate risk of disk space issues somewhat #92

Manually merged
tlater merged 2 commits from tlater/metrics into master 2023-12-15 16:35:58 +00:00
Showing only changes of commit 95b5d4b3bd - Show all commits

View file

@ -153,7 +153,12 @@
services.logrotate = {
enable = true;
settings = lib.mapAttrs' (virtualHost: _:
settings =
{
# Override the default, just keep fewer logs
nginx.rotate = 6;
}
// lib.mapAttrs' (virtualHost: _:
lib.nameValuePair "/var/log/nginx/${virtualHost}/access.log" {
frequency = "daily";
rotate = 2;