From a5daae2a5ff1bde2c1b6464e312bd5023b2782aa Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Wed, 3 Mar 2021 11:08:11 +0000 Subject: [PATCH] Update nginx reverse-proxy docs (#9512) Turns out nginx overwrites the Host header by default. --- changelog.d/9512.feature | 1 + docs/reverse_proxy.md | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog.d/9512.feature diff --git a/changelog.d/9512.feature b/changelog.d/9512.feature new file mode 100644 index 000000000..06cfd5d19 --- /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 bb7caa8bb..81e5a68a3 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;