Skip to content

Commit a5daae2

Browse files
authored
Update nginx reverse-proxy docs (matrix-org#9512)
Turns out nginx overwrites the Host header by default.
1 parent 0279e0e commit a5daae2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

changelog.d/9512.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for `X-Forwarded-Proto` header when using a reverse proxy.

docs/reverse_proxy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ server {
5353
proxy_pass http://localhost:8008;
5454
proxy_set_header X-Forwarded-For $remote_addr;
5555
proxy_set_header X-Forwarded-Proto $scheme;
56+
proxy_set_header Host $host;
57+
5658
# Nginx by default only allows file uploads up to 1M in size
5759
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
5860
client_max_body_size 50M;

0 commit comments

Comments
 (0)