mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
nixos/{pretix,pretalx}: set up log rotation (#343982)
This commit is contained in:
commit
aaa7fb5840
@ -294,6 +294,15 @@ in
|
|||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.logrotate.settings.pretalx = {
|
||||||
|
files = "${cfg.settings.filesystem.logs}/*.log";
|
||||||
|
su = "${cfg.user} ${cfg.group}";
|
||||||
|
frequency = "weekly";
|
||||||
|
rotate = "12";
|
||||||
|
copytruncate = true;
|
||||||
|
compress = true;
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
nginx = lib.mkIf cfg.nginx.enable {
|
nginx = lib.mkIf cfg.nginx.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -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 = {
|
services = {
|
||||||
nginx = mkIf cfg.nginx.enable {
|
nginx = mkIf cfg.nginx.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user