This commit is contained in:
seb
2026-09-23 17:24:33 +02:00
parent 0391e845f0
commit b331f8f535
17 changed files with 2352 additions and 202 deletions

View File

@@ -90,13 +90,13 @@ server {
proxy_pass http://127.0.0.1:4208;
proxy_http_version 1.1;
# Clear Connection & Accept-Encoding to prevent upstream gzip/chunk buffering
proxy_set_header Connection "";
proxy_set_header Accept-Encoding "";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Clear Connection & Accept-Encoding to prevent upstream buffering
proxy_set_header Connection "";
proxy_set_header Accept-Encoding "";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Disable buffering and compression completely for immediate push
proxy_buffering off;
@@ -104,7 +104,8 @@ server {
chunked_transfer_encoding off;
gzip off;
# Prevent premature disconnections; keep SSE open for 24 hours
# Disable HTTP/2 request limits for persistent SSE connection
# (Prevents NGINX from resetting long-lived streams)
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
}