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.
This commit is contained in:
yuri 2023-10-07 03:30:24 +02:00 committed by Jannes Grzebien
parent 95ac75c355
commit 3053eb9b2f

View file

@ -38,7 +38,9 @@
]; ];
locations."~ ^(/_matrix|/_synapse/client)" = { 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 = '' extraConfig = ''
# Nginx by default only allows file uploads up to 1M in size # 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 # Increase client_max_body_size to match max_upload_size defined in homeserver.yaml