mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03: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
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue