Compare commits
1 commit
0a6c5666b1
...
ce7ab67038
| Author | SHA1 | Date | |
|---|---|---|---|
| ce7ab67038 |
2 changed files with 3 additions and 5 deletions
|
|
@ -48,7 +48,6 @@
|
||||||
memorySize = 3941;
|
memorySize = 3941;
|
||||||
cores = 2;
|
cores = 2;
|
||||||
graphics = false;
|
graphics = false;
|
||||||
diskSize = 1024 * 20;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.qemu = {
|
virtualisation.qemu = {
|
||||||
|
|
|
||||||
|
|
@ -32,10 +32,11 @@ in
|
||||||
systemd.tmpfiles.settings."10-nginx-logs" = lib.listToAttrs (
|
systemd.tmpfiles.settings."10-nginx-logs" = lib.listToAttrs (
|
||||||
map (
|
map (
|
||||||
name:
|
name:
|
||||||
lib.nameValuePair "/var/log/nginx/${name}" {
|
lib.nameValuePair (logPath name) {
|
||||||
d = {
|
d = {
|
||||||
inherit (config.services.nginx) user group;
|
inherit (config.services.nginx) user group;
|
||||||
mode = "0750";
|
mode = "0750";
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
) hostNames
|
) hostNames
|
||||||
|
|
@ -68,9 +69,7 @@ in
|
||||||
nginx.rotate = 6;
|
nginx.rotate = 6;
|
||||||
|
|
||||||
# Configure logrotate for host-specific logs
|
# Configure logrotate for host-specific logs
|
||||||
nginxVirtualHosts = {
|
${lib.concatStringsSep " " (map logPath hostNames)} = {
|
||||||
files = map logPath hostNames;
|
|
||||||
|
|
||||||
frequency = "daily";
|
frequency = "daily";
|
||||||
rotate = 2;
|
rotate = 2;
|
||||||
compress = true;
|
compress = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue