~sumner/nixos-configuration

77d5f4f4777b1b15d154dca95f1cbb2947c5d723 — Sumner Evans a month ago d66c088
goaccess: delete stats from days older than a month
1 files changed, 2 insertions(+), 2 deletions(-)

M modules/services/goaccess.nix
M modules/services/goaccess.nix => modules/services/goaccess.nix +2 -2
@@ 54,7 54,7 @@
      ${concatMapStringsSep "\n" (goaccessWebsiteMetricsForDayScriptPart "$logtmp" hostname) (range 0 7)}

      # Clean-up days older than a month.
      # TODO
      ${pkgs.findutils}/bin/find ${goaccessDir}/${hostname}/days -mtime +30 -delete
    '';

  hostListItem = { hostname, ... }: ''


@@ 147,7 147,7 @@ in
        value = {
          description = "Goaccess timer for ${website.hostname}";
          wantedBy = [ "timers.target" ];
          timerConfig.OnCalendar = "*:0/10";
          timerConfig.OnCalendar = "*:0/15";
        };
      };
    in