Unverified Commit 9a85a7e2 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

nixos/pretix: enable log rotation

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