mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-05 15:37:02 +00:00
Update docs with what we've learned from #17986
See https://github.com/element-hq/synapse/pull/17986
This commit is contained in:
parent
657dd5151e
commit
1cd9b7980e
2 changed files with 4 additions and 1 deletions
|
@ -38,6 +38,9 @@ server {
|
||||||
{% if using_unix_sockets %}
|
{% if using_unix_sockets %}
|
||||||
proxy_pass http://unix:/run/main_public.sock;
|
proxy_pass http://unix:/run/main_public.sock;
|
||||||
{% else %}
|
{% else %}
|
||||||
|
# note: do not add a path (even a single /) after the port in `proxy_pass`,
|
||||||
|
# otherwise nginx will canonicalise the URI and cause signature verification
|
||||||
|
# errors.
|
||||||
proxy_pass http://localhost:8080;
|
proxy_pass http://localhost:8080;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
|
|
@ -74,7 +74,7 @@ server {
|
||||||
proxy_pass http://localhost:8008;
|
proxy_pass http://localhost:8008;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host:$server_port;
|
||||||
|
|
||||||
# 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…
Add table
Reference in a new issue