From 3053eb9b2f46d7e69e31f9d622161f2fb003106e Mon Sep 17 00:00:00 2001 From: yuri Date: Sat, 7 Oct 2023 03:30:24 +0200 Subject: [PATCH] Proxy to IPv4 local address Only proxy to the local host on IPv4, because localhost doesn't seem to work even if matrix-synapse is listening on ::1 as well. --- config/hosts/matrix/nginx.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/hosts/matrix/nginx.nix b/config/hosts/matrix/nginx.nix index e5770b5..f498456 100644 --- a/config/hosts/matrix/nginx.nix +++ b/config/hosts/matrix/nginx.nix @@ -38,7 +38,9 @@ ]; locations."~ ^(/_matrix|/_synapse/client)" = { - proxyPass = "http://localhost:8008"; + # Only proxy to the local host on IPv4, because localhost doesn't seem to work + # even if matrix-synapse is listening on ::1 as well. + proxyPass = "http://127.0.0.1:8008"; extraConfig = '' # Nginx by default only allows file uploads up to 1M in size # Increase client_max_body_size to match max_upload_size defined in homeserver.yaml