mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Update nginx reverse-proxy docs (#9512)
Turns out nginx overwrites the Host header by default.
This commit is contained in:
parent
0279e0e086
commit
a5daae2a5f
1
changelog.d/9512.feature
Normal file
1
changelog.d/9512.feature
Normal file
@ -0,0 +1 @@
|
|||||||
|
Add support for `X-Forwarded-Proto` header when using a reverse proxy.
|
@ -53,6 +53,8 @@ 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;
|
||||||
|
|
||||||
# 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
|
||||||
client_max_body_size 50M;
|
client_max_body_size 50M;
|
||||||
|
Loading…
Reference in New Issue
Block a user