summaryrefslogtreecommitdiff
path: root/nixos/hosts/tente/matrix.nix
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-03-27 08:09:26 +0100
committerMartin Fischer <martin@push-f.com>2025-03-27 19:50:24 +0100
commit2616e00a5310e1755fdec02147f1110221fb6d36 (patch)
tree6fcfcbf9c348beee3dc973a1f11b2d9776e26a74 /nixos/hosts/tente/matrix.nix
parent5a0c9eb79b5618c4894397646788e77db90429e0 (diff)
tweak(tente): rotate matrix nginx access logs daily
Diffstat (limited to 'nixos/hosts/tente/matrix.nix')
-rw-r--r--nixos/hosts/tente/matrix.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/hosts/tente/matrix.nix b/nixos/hosts/tente/matrix.nix
index 3dc5ad0..cf0f09a 100644
--- a/nixos/hosts/tente/matrix.nix
+++ b/nixos/hosts/tente/matrix.nix
@@ -60,6 +60,16 @@ in
# Forward requests for e.g. SSO and password-resets.
locations."/_synapse/client".proxyPass = "http://127.0.0.1:${toString cfg.port}";
};
+
+ # I don't really care about these nginx access logs. Synapse has its own
+ # log anyway and with the default log rotation (weekly and delaycompress=true)
+ # the access logs from last week took up ~800MB.
+ logrotate.settings.matrix-nginx-access-log =
+ (helpers.mkNginxAccessLogrotateSettings cfg.apiDomain)
+ // {
+ frequency = "daily";
+ rotate = 14;
+ };
};
};
}