summaryrefslogtreecommitdiff
path: root/nixos/hosts/tente/matrix.nix
diff options
context:
space:
mode:
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;
+ };
};
};
}