tune nginx settings
This commit is contained in:
parent
8439d56339
commit
9cc4225b86
1 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue