From 9cc4225b86e35ce499bc915011611acfc66b3006 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 18 May 2015 11:43:14 +0200 Subject: [PATCH] tune nginx settings --- etc/nginx/pandora | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/etc/nginx/pandora b/etc/nginx/pandora index 280efde99..ad7541ff1 100644 --- a/etc/nginx/pandora +++ b/etc/nginx/pandora @@ -40,11 +40,9 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; + proxy_buffering off; proxy_read_timeout 999999999; - if (!-f $request_filename) { - proxy_pass http://127.0.0.1:2622; - break; - } + proxy_pass http://127.0.0.1:2622/; } location / { @@ -52,6 +50,7 @@ server { proxy_set_header X-Forwarded-Proto http; proxy_set_header Host $http_host; proxy_redirect off; + proxy_buffering off; proxy_read_timeout 90; #should be in sync with gunicorn timeout proxy_connect_timeout 90; #should be in sync with gunicorn timeout if (!-f $request_filename) {