diff options
Diffstat (limited to 'nixos/modules/services/web-apps/pretalx.nix')
-rw-r--r-- | nixos/modules/services/web-apps/pretalx.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/pretalx.nix b/nixos/modules/services/web-apps/pretalx.nix index 2280d9165b40..35af8c26482c 100644 --- a/nixos/modules/services/web-apps/pretalx.nix +++ b/nixos/modules/services/web-apps/pretalx.nix @@ -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 = { nginx = lib.mkIf cfg.nginx.enable { enable = true; |