Compare commits

...

2 commits

2 changed files with 18 additions and 10 deletions

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;

View file

@ -1,6 +1,9 @@
{config, ...}: {
config.services.victoriametrics = {
enable = true;
extraOptions = [
"-storage.minFreeDiskSpaceBytes=5GB"
];
scrapeConfigs = {
gitea = {