aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-14 22:28:33 +0530
committerArun Isaac2022-06-14 22:28:33 +0530
commitd86888a2da455a3fc6374cb3429a6a66352a3599 (patch)
treed622734c3dd8541418c0240f7c9246be670a0df1
parenteb6ac8d41ae178b3147165a00882d37e40951cbc (diff)
downloadgn-machines-d86888a2da455a3fc6374cb3429a6a66352a3599.tar.gz
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.
-rw-r--r--genenetwork-development.scm7
1 files 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")