Compare commits

..

1 commit

Author SHA1 Message Date
ce7ab67038
refactor(nginx): Clean up nginx configuration 2025-11-13 04:26:45 +08:00
2 changed files with 3 additions and 5 deletions

View file

@ -48,7 +48,6 @@
memorySize = 3941;
cores = 2;
graphics = false;
diskSize = 1024 * 20;
};
virtualisation.qemu = {

View file

@ -32,10 +32,11 @@ in
systemd.tmpfiles.settings."10-nginx-logs" = lib.listToAttrs (
map (
name:
lib.nameValuePair "/var/log/nginx/${name}" {
lib.nameValuePair (logPath name) {
d = {
inherit (config.services.nginx) user group;
mode = "0750";
};
}
) hostNames
@ -68,9 +69,7 @@ in
nginx.rotate = 6;
# Configure logrotate for host-specific logs
nginxVirtualHosts = {
files = map logPath hostNames;
${lib.concatStringsSep " " (map logPath hostNames)} = {
frequency = "daily";
rotate = 2;
compress = true;