This commit is contained in:
Gian P. 2026-01-19 05:39:14 -03:00 committed by GitHub
commit db60ff99ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.
# ======================================================================