From: David Schoonover Date: Fri, 8 Jun 2012 22:39:13 +0000 (-0700) Subject: Disable buffering for nginx. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=3d218e1161e098a5065fc26d48a9f6116254eb9b;p=limn.git Disable buffering for nginx. --- diff --git a/lib/server/proxy.co b/lib/server/proxy.co index 15349a5..8dafdf6 100644 --- a/lib/server/proxy.co +++ b/lib/server/proxy.co @@ -26,6 +26,9 @@ ProxyMiddleware = (options={}) -> unless matchesList whitelist, target.hostname return res.send {error:'Domain is not whitelisted'}, 403 + # Set the no-buffering flag for nginx + res.header 'X-Accel-Buffering', 'no' + console.log "[Proxy] #targetUrl" request.get targetUrl .pipe res