diff --git a/contrib/nginx/copyparty.conf b/contrib/nginx/copyparty.conf index 440e22c3..12a7b4d4 100644 --- a/contrib/nginx/copyparty.conf +++ b/contrib/nginx/copyparty.conf @@ -32,7 +32,18 @@ # (curl -s https://www.cloudflare.com/ips-v{4,6} | sed 's/^/allow /; s/$/;/'; echo; echo "deny all;") > /etc/nginx/cloudflare-only.conf # # and then enable it below by uncommenting the cloudflare-only.conf line +# # +# ** Fix upload speed for Cloudflare proxy: from <1MBps to >40MBps ** +# If using cloudflare proxy, replace: +# proxy_set_header Connection "Keep-Alive"; +# with: +# proxy_set_header Connection ""; +# and just make sure you also have: proxy_http_version 1.1; +# +# Reason: Clears client "Connection" headers so Nginx can manage its own +# persistent pool via the "upstream" keepalive. Prevents Cloudflare/Client +# close-signals from killing the backend pipe, drastically boosting speed. # ======================================================================