Compare commits

..

No commits in common. "95b5d4b3bd879783cef39f4d50f902e55548313f" and "759a9c7c0c088b1e65d22500bd66ffbae71f70ae" have entirely different histories.

2 changed files with 10 additions and 18 deletions

View file

@ -153,21 +153,16 @@
services.logrotate = { services.logrotate = {
enable = true; enable = true;
settings = settings = lib.mapAttrs' (virtualHost: _:
{ lib.nameValuePair "/var/log/nginx/${virtualHost}/access.log" {
# Override the default, just keep fewer logs frequency = "daily";
nginx.rotate = 6; rotate = 2;
} compress = true;
// lib.mapAttrs' (virtualHost: _: delaycompress = true;
lib.nameValuePair "/var/log/nginx/${virtualHost}/access.log" { su = "${config.services.nginx.user} ${config.services.nginx.group}";
frequency = "daily"; postrotate = "[ ! -f /var/run/nginx/nginx.pid ] || kill -USR1 `cat /var/run/nginx/nginx.pid`";
rotate = 2; })
compress = true; config.services.nginx.virtualHosts;
delaycompress = true;
su = "${config.services.nginx.user} ${config.services.nginx.group}";
postrotate = "[ ! -f /var/run/nginx/nginx.pid ] || kill -USR1 `cat /var/run/nginx/nginx.pid`";
})
config.services.nginx.virtualHosts;
}; };
systemd.tmpfiles.rules = systemd.tmpfiles.rules =
lib.mapAttrsToList ( lib.mapAttrsToList (

View file

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