From ef759b4c0c90a5d92ea1f61b093b81bd81bc082d Mon Sep 17 00:00:00 2001
From: lilly
Date: Wed, 2 Sep 2026 14:59:05 +0200
Subject: [PATCH] increase matrix request-uri max size
---
config/hosts/matrix/nginx.nix | 2 ++
1 file changed, 2 insertions(+)
diff --git a/config/hosts/matrix/nginx.nix b/config/hosts/matrix/nginx.nix
index 5a4f716..88c8e11 100644
--- a/config/hosts/matrix/nginx.nix
+++ b/config/hosts/matrix/nginx.nix
@@ -92,6 +92,8 @@
# Then tell the realip_module to get the addreses from the proxy protocol
# header.
real_ip_header proxy_protocol;
+ # increase header buffer size because mjolnir sometimes uses very large URIs which nginx would normally block
+ large_client_header_buffers 4 16k;
'';
};