summary refs log tree commit diff
path: root/docs/reverse_proxy.md
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-03-03 11:08:11 +0000
committerGitHub <noreply@github.com>2021-03-03 11:08:11 +0000
commita5daae2a5ff1bde2c1b6464e312bd5023b2782aa (patch)
tree9f47467abc7c4a790c6bc2e97bffec9ec2eca7c0 /docs/reverse_proxy.md
parentPrevent presence background jobs from running when presence is disabled (#9530) (diff)
downloadsynapse-a5daae2a5ff1bde2c1b6464e312bd5023b2782aa.tar.xz
Update nginx reverse-proxy docs (#9512)
Turns out nginx overwrites the Host header by default.
Diffstat (limited to '')
-rw-r--r--docs/reverse_proxy.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/reverse_proxy.md b/docs/reverse_proxy.md
index bb7caa8bb9..81e5a68a36 100644
--- a/docs/reverse_proxy.md
+++ b/docs/reverse_proxy.md
@@ -53,6 +53,8 @@ server {
         proxy_pass http://localhost:8008;
         proxy_set_header X-Forwarded-For $remote_addr;
         proxy_set_header X-Forwarded-Proto $scheme;
+        proxy_set_header Host $host;
+
         # 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
         client_max_body_size 50M;