summary refs log tree commit diff
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
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.
-rw-r--r--changelog.d/9512.feature1
-rw-r--r--docs/reverse_proxy.md2
2 files changed, 3 insertions, 0 deletions
diff --git a/changelog.d/9512.feature b/changelog.d/9512.feature
new file mode 100644
index 0000000000..06cfd5d199
--- /dev/null
+++ b/changelog.d/9512.feature
@@ -0,0 +1 @@
+Add support for `X-Forwarded-Proto` header when using a reverse proxy.
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;