From 898a728f5a97a3629620ad6cbb83c2e73efae25e Mon Sep 17 00:00:00 2001 From: PJ Date: Fri, 4 Jun 2021 11:43:52 +0200 Subject: [PATCH 1/2] Increase request timeout --- docker/nginx/conf.d/client.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 632a0c13..24547762 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -333,7 +333,12 @@ server { limit_conn upload_conn_rl 1; client_max_body_size 1000M; # make sure to limit the size of upload to a sane value + + # increase request timeouts proxy_read_timeout 600; + proxy_connect_timeout 600; + proxy_send_timeout 600; + proxy_request_buffering off; # stream uploaded files through the proxy as it comes in proxy_set_header Expect $http_expect; proxy_set_header User-Agent: Sia-Agent; @@ -391,7 +396,12 @@ server { include /etc/nginx/conf.d/include/cors; client_max_body_size 50M; # tus chunks size is 40M + leaving 10M of breathing room + + # increase request timeouts proxy_read_timeout 600; + proxy_connect_timeout 600; + proxy_send_timeout 600; + proxy_request_buffering off; # stream uploaded files through the proxy as it comes in proxy_set_header Expect $http_expect; From bd8593039dd824baa27a599b623cfe3bf767a4ab Mon Sep 17 00:00:00 2001 From: PJ Date: Fri, 4 Jun 2021 11:58:38 +0200 Subject: [PATCH 2/2] Do not increase proxy_connect_timeout --- docker/nginx/conf.d/client.conf | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 24547762..bd5ddef5 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -336,7 +336,6 @@ server { # increase request timeouts proxy_read_timeout 600; - proxy_connect_timeout 600; proxy_send_timeout 600; proxy_request_buffering off; # stream uploaded files through the proxy as it comes in @@ -399,7 +398,6 @@ server { # increase request timeouts proxy_read_timeout 600; - proxy_connect_timeout 600; proxy_send_timeout 600; proxy_request_buffering off; # stream uploaded files through the proxy as it comes in