Compare commits
2 commits
95b5d4b3bd
...
1c07fbec8f
Author | SHA1 | Date | |
---|---|---|---|
Tristan Daniël Maat | 1c07fbec8f | ||
Tristan Daniël Maat | 6051151a08 |
|
@ -153,21 +153,16 @@
|
|||
services.logrotate = {
|
||||
enable = true;
|
||||
|
||||
settings =
|
||||
{
|
||||
# Override the default, just keep fewer logs
|
||||
nginx.rotate = 6;
|
||||
}
|
||||
// lib.mapAttrs' (virtualHost: _:
|
||||
lib.nameValuePair "/var/log/nginx/${virtualHost}/access.log" {
|
||||
frequency = "daily";
|
||||
rotate = 2;
|
||||
compress = true;
|
||||
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;
|
||||
settings = lib.mapAttrs' (virtualHost: _:
|
||||
lib.nameValuePair "/var/log/nginx/${virtualHost}/access.log" {
|
||||
frequency = "daily";
|
||||
rotate = 2;
|
||||
compress = true;
|
||||
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 =
|
||||
lib.mapAttrsToList (
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
in {
|
||||
imports = [flake-inputs.foundryvtt.nixosModules.foundryvtt];
|
||||
|
||||
services.foundryvtt = {
|
||||
enable = true;
|
||||
hostName = domain;
|
||||
minifyStaticFiles = true;
|
||||
};
|
||||
# services.foundryvtt = {
|
||||
# enable = true;
|
||||
# hostName = domain;
|
||||
# minifyStaticFiles = true;
|
||||
# };
|
||||
|
||||
# Want to start it manually when I need it, not have it constantly
|
||||
# running
|
||||
|
|
Loading…
Reference in a new issue