Unverified Commit 1d8c946f authored by Martin Weinelt's avatar Martin Weinelt
Browse files

nixos/pretalx: enable log rotation

This limits the amount of logs we store by default to 3 months.
parent 9a85a7e2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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;