Compare commits

..

2 commits

2 changed files with 15 additions and 20 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

@ -8,11 +8,11 @@
in { in {
imports = [flake-inputs.foundryvtt.nixosModules.foundryvtt]; imports = [flake-inputs.foundryvtt.nixosModules.foundryvtt];
services.foundryvtt = { # services.foundryvtt = {
enable = true; # enable = true;
hostName = domain; # hostName = domain;
minifyStaticFiles = true; # minifyStaticFiles = true;
}; # };
# Want to start it manually when I need it, not have it constantly # Want to start it manually when I need it, not have it constantly
# running # running