tune nginx settings

This commit is contained in:
j 2015-05-18 11:43:14 +02:00
parent 8439d56339
commit 9cc4225b86

View file

@ -40,11 +40,9 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_redirect off; proxy_redirect off;
proxy_buffering off;
proxy_read_timeout 999999999; proxy_read_timeout 999999999;
if (!-f $request_filename) { proxy_pass http://127.0.0.1:2622/;
proxy_pass http://127.0.0.1:2622;
break;
}
} }
location / { location / {
@ -52,6 +50,7 @@ server {
proxy_set_header X-Forwarded-Proto http; proxy_set_header X-Forwarded-Proto http;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_redirect off; proxy_redirect off;
proxy_buffering off;
proxy_read_timeout 90; #should be in sync with gunicorn timeout proxy_read_timeout 90; #should be in sync with gunicorn timeout
proxy_connect_timeout 90; #should be in sync with gunicorn timeout proxy_connect_timeout 90; #should be in sync with gunicorn timeout
if (!-f $request_filename) { if (!-f $request_filename) {