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:
parent
95ac75c355
commit
3053eb9b2f
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue