Commit 068f31a7 authored by Ryan Herbert's avatar Ryan Herbert

nginx* fix upload gateway timeout

When uploading large files, users would sometimes encounter a gateway
timeout due to the fact that nginx was dropping the connection to the
backend after a set amount of time and indicating that the upload may
have failed, although the backend would continue to process the file and
ultimately -- in most cases -- correctly finish the upload.
Increasing the value should reduce the amount of confusion incurred for
users.
parent a51e62a3
......@@ -22,6 +22,9 @@ server {
ssl_ciphers ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
keepalive_timeout 70;
uwsgi_read_timeout 10m;
location / {
uwsgi_pass uwsgi;
include uwsgi_params;
......
......@@ -79,6 +79,9 @@ server {
ssl_ciphers ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
keepalive_timeout 70;
uwsgi_read_timeout 10m;
location / {
#uwsgi_pass 127.0.0.1:9001;
uwsgi_pass unix:///tmp/web2py.socket;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment