From f5e35fb937f747d143ad83685fdbca824377879a Mon Sep 17 00:00:00 2001 From: Max Kadel Date: Tue, 11 Aug 2026 21:18:42 +0100 Subject: [PATCH] Increase proxy connect, send, and read timeouts for nginx Slow client connections were timing out while sending large 10MB chunks of files --- ops/friends-deploy.tmpl.yaml | 3 +++ ops/production-deploy.tmpl.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ops/friends-deploy.tmpl.yaml b/ops/friends-deploy.tmpl.yaml index eea68a6..2663c2d 100644 --- a/ops/friends-deploy.tmpl.yaml +++ b/ops/friends-deploy.tmpl.yaml @@ -637,6 +637,9 @@ nginx: proxy_set_header Upgrade ${DOLLAR}http_upgrade; proxy_set_header Connection ${DOLLAR}connection_upgrade; proxy_redirect off; + proxy_connect_timeout 3600s; + proxy_send_timeout 3600s; + proxy_read_timeout 3600s; proxy_pass http://rails_app; } } diff --git a/ops/production-deploy.tmpl.yaml b/ops/production-deploy.tmpl.yaml index 5acb80f..4fff3e3 100644 --- a/ops/production-deploy.tmpl.yaml +++ b/ops/production-deploy.tmpl.yaml @@ -619,6 +619,9 @@ nginx: proxy_set_header Upgrade ${DOLLAR}http_upgrade; proxy_set_header Connection ${DOLLAR}connection_upgrade; proxy_redirect off; + proxy_connect_timeout 3600s; + proxy_send_timeout 3600s; + proxy_read_timeout 3600s; proxy_pass http://rails_app; } }