From cf184055c4d0115f8f6bbf267afccbb6ef1446dd Mon Sep 17 00:00:00 2001 From: Niklas Meyer <62480600+DerLinkman@users.noreply.github.com> Date: Wed, 6 Apr 2022 18:55:48 +0200 Subject: [PATCH] [Reverse Proxy] Added new Proxy Buffers to NGINX Reverse Proxy Conf (for SOGO 2022-04) (#390) Co-authored-by: Niklas Meyer --- docs/post_installation/firststeps-rp.de.md | 9 +++++++-- docs/post_installation/firststeps-rp.en.md | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/post_installation/firststeps-rp.de.md b/docs/post_installation/firststeps-rp.de.md index 97263e8c2..4b7a92ee5 100644 --- a/docs/post_installation/firststeps-rp.de.md +++ b/docs/post_installation/firststeps-rp.de.md @@ -95,7 +95,7 @@ Let's Encrypt wird unserem Rewrite folgen, Zertifikatsanfragen in mailcow werden Let's Encrypt folgt unserem Rewrite, Zertifikatsanfragen funktionieren problemlos. -**Kümmern Sie sich um die hervorgehobenen Zeilen**. +**Achten Sie auf die hervorgehobenen Zeilen**. ``` hl_lines="4 10 12 13 25 39" server { @@ -130,7 +130,7 @@ server { proxy_connect_timeout 75; proxy_send_timeout 3650; proxy_read_timeout 3650; - proxy_buffers 64 256k; + proxy_buffers 64 512k; # Seit dem 2022-04 Update nötig für SOGo client_body_buffer_size 512k; client_max_body_size 0; } @@ -142,6 +142,11 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; client_max_body_size 0; + # Die folgenden Proxy-Buffer müssen gesetzt werden, wenn Sie SOGo nach dem Update 2022-04 (April 2022) verwenden wollen + # Andernfalls wird ein Login wie folgt fehlschlagen: https://github.com/mailcow/mailcow-dockerized/issues/4537 + proxy_buffer_size 128k; + proxy_buffers 64 512k; + proxy_busy_buffers_size 512k; } } ``` diff --git a/docs/post_installation/firststeps-rp.en.md b/docs/post_installation/firststeps-rp.en.md index afd9a65f5..0b4697beb 100644 --- a/docs/post_installation/firststeps-rp.en.md +++ b/docs/post_installation/firststeps-rp.en.md @@ -131,7 +131,7 @@ server { proxy_connect_timeout 75; proxy_send_timeout 3650; proxy_read_timeout 3650; - proxy_buffers 64 256k; + proxy_buffers 64 512k; # Needed since the 2022-04 Update for SOGo client_body_buffer_size 512k; client_max_body_size 0; } @@ -143,6 +143,11 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; client_max_body_size 0; + # The following Proxy Buffers has to be set if you want to use SOGo after the 2022-04 (April 2022) Update + # Otherwise a Login will fail like this: https://github.com/mailcow/mailcow-dockerized/issues/4537 + proxy_buffer_size 128k; + proxy_buffers 64 512k; + proxy_busy_buffers_size 512k; } } ```