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