mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
nixos/pretix: enable log rotation
This limits the amount of logs we store by default to 3 months.
This commit is contained in:
parent
64a773b7e4
commit
9a85a7e2ce
@ -403,6 +403,15 @@ in
|
||||
'')
|
||||
];
|
||||
|
||||
services.logrotate.settings.pretix = {
|
||||
files = "${cfg.settings.pretix.logdir}/*.log";
|
||||
su = "${cfg.user} ${cfg.group}";
|
||||
frequency = "weekly";
|
||||
rotate = "12";
|
||||
copytruncate = true;
|
||||
compress = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
nginx = mkIf cfg.nginx.enable {
|
||||
enable = true;
|
||||
|
Loading…
Reference in New Issue
Block a user