From f9e2879c643be926d57f8fe334fc47fb9b330844 Mon Sep 17 00:00:00 2001 From: Brad Jones Date: Thu, 10 Nov 2022 22:37:08 -0700 Subject: [PATCH 1/4] Update sample Nginx configuration to HTTP 1.1 Signed-off-by: Brad Jones --- docs/reverse_proxy.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reverse_proxy.md b/docs/reverse_proxy.md index 4e7a1d443533..04f4ba7541b1 100644 --- a/docs/reverse_proxy.md +++ b/docs/reverse_proxy.md @@ -79,6 +79,10 @@ server { # 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; + + # Synapse responses may be chunked, which is an HTTP/1.1 feature. + proxy_http_version 1.1; + proxy_buffering off; } } ``` From 40857f0f2bd8d7d9f4566f0e0bee79a9c152b961 Mon Sep 17 00:00:00 2001 From: Brad Jones Date: Thu, 10 Nov 2022 22:49:07 -0700 Subject: [PATCH 2/4] Add changelog file --- changelog.d/14414.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/14414.doc diff --git a/changelog.d/14414.doc b/changelog.d/14414.doc new file mode 100644 index 000000000000..39cae48bea8b --- /dev/null +++ b/changelog.d/14414.doc @@ -0,0 +1 @@ +Edited sample Nginx reverse proxy configuration to use HTTP/1.1. Contributed by Brad Jones. From 63755f5558d07d107fcf2e5f01649ffff28ca864 Mon Sep 17 00:00:00 2001 From: Brad Jones Date: Fri, 11 Nov 2022 09:29:37 -0700 Subject: [PATCH 3/4] Update reverse_proxy.md --- docs/reverse_proxy.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/reverse_proxy.md b/docs/reverse_proxy.md index 04f4ba7541b1..48dbc1c58eca 100644 --- a/docs/reverse_proxy.md +++ b/docs/reverse_proxy.md @@ -82,7 +82,6 @@ server { # Synapse responses may be chunked, which is an HTTP/1.1 feature. proxy_http_version 1.1; - proxy_buffering off; } } ``` From e3d1f137c11ee236386253623dfce2b222b8b599 Mon Sep 17 00:00:00 2001 From: Brad Jones Date: Fri, 11 Nov 2022 09:48:40 -0700 Subject: [PATCH 4/4] Update changelog.d/14414.doc Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com> --- changelog.d/14414.doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/14414.doc b/changelog.d/14414.doc index 39cae48bea8b..23dd963d4761 100644 --- a/changelog.d/14414.doc +++ b/changelog.d/14414.doc @@ -1 +1 @@ -Edited sample Nginx reverse proxy configuration to use HTTP/1.1. Contributed by Brad Jones. +Edit sample Nginx reverse proxy configuration to use HTTP/1.1. Contributed by Brad Jones.