From c22bf1bcca276cde16ca15e8579cbaaa2ead00bc Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Fri, 28 Jan 2022 09:22:34 -0500 Subject: [PATCH] Use 10 minutes timeout for portal-ui proxy --- nginx/conf.d-dev/portal-ui.conf | 7 +++++++ nginx/conf.d-stage/portal-ui.conf | 7 +++++++ nginx/conf.d-stage/prod-portal-ui.conf | 11 +++++++++++ nginx/conf.d-test/portal-ui.conf | 7 +++++++ 4 files changed, 32 insertions(+) diff --git a/nginx/conf.d-dev/portal-ui.conf b/nginx/conf.d-dev/portal-ui.conf index 2514518..5c229cd 100644 --- a/nginx/conf.d-dev/portal-ui.conf +++ b/nginx/conf.d-dev/portal-ui.conf @@ -45,6 +45,13 @@ server { # gzip_http_version sets the minimum HTTP version of a request required to compress a response to 1.1 by default. # proxy_http_version needs to be >= that, but is 1.0 by default. proxy_http_version 1.1; + + # Due to cells-api slowness + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } } diff --git a/nginx/conf.d-stage/portal-ui.conf b/nginx/conf.d-stage/portal-ui.conf index f7fdd83..5a78f29 100644 --- a/nginx/conf.d-stage/portal-ui.conf +++ b/nginx/conf.d-stage/portal-ui.conf @@ -45,6 +45,13 @@ server { # gzip_http_version sets the minimum HTTP version of a request required to compress a response to 1.1 by default. # proxy_http_version needs to be >= that, but is 1.0 by default. proxy_http_version 1.1; + + # Due to cells-api slowness + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } } diff --git a/nginx/conf.d-stage/prod-portal-ui.conf b/nginx/conf.d-stage/prod-portal-ui.conf index f0ac8dd..0323395 100644 --- a/nginx/conf.d-stage/prod-portal-ui.conf +++ b/nginx/conf.d-stage/prod-portal-ui.conf @@ -34,6 +34,17 @@ server { # (Plain "$host" does not include port.) proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; + + # gzip_http_version sets the minimum HTTP version of a request required to compress a response to 1.1 by default. + # proxy_http_version needs to be >= that, but is 1.0 by default. + proxy_http_version 1.1; + + # Due to cells-api slowness + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } } diff --git a/nginx/conf.d-test/portal-ui.conf b/nginx/conf.d-test/portal-ui.conf index 3876ca9..824a686 100644 --- a/nginx/conf.d-test/portal-ui.conf +++ b/nginx/conf.d-test/portal-ui.conf @@ -45,6 +45,13 @@ server { # gzip_http_version sets the minimum HTTP version of a request required to compress a response to 1.1 by default. # proxy_http_version needs to be >= that, but is 1.0 by default. proxy_http_version 1.1; + + # Due to cells-api slowness + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } }