From d86888a2da455a3fc6374cb3429a6a66352a3599 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 14 Jun 2022 22:28:33 +0530 Subject: Disable laminar proxy buffering by passing X-Accel-Buffering. * genenetwork-development.scm (laminar-reverse-proxy-server-block): Disable laminar proxy buffering by passing the X-Accel-Buffering HTTP header through. --- genenetwork-development.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/genenetwork-development.scm b/genenetwork-development.scm index fe8313e..c0ec4f5 100644 --- a/genenetwork-development.scm +++ b/genenetwork-development.scm @@ -731,11 +731,10 @@ list of channel names for which a channels.scm should be published." (list (nginx-location-configuration (uri "/") (body (list (string-append "proxy_pass http://" laminar-bind-http ";") - ;; We need these to allow Laminar's Server-Sent + ;; Disable proxy buffering in host's nginx. We + ;; need this to allow Laminar's Server-Sent ;; Events to pass through. - "proxy_http_version 1.1;" - "proxy_set_header Connection \"\";" - "proxy_buffering off;"))) + "proxy_pass_header X-Accel-Buffering;"))) ;; Publish the channels.scm used to build this container. (nginx-location-configuration (uri "= /channels.scm") -- cgit v1.2.3