Skip to content

Commit

Permalink
Use 10 minutes timeout for portal-ui proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzhou committed Jan 28, 2022
1 parent 446b972 commit c22bf1b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nginx/conf.d-dev/portal-ui.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
Expand Down
7 changes: 7 additions & 0 deletions nginx/conf.d-stage/portal-ui.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
Expand Down
11 changes: 11 additions & 0 deletions nginx/conf.d-stage/prod-portal-ui.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
7 changes: 7 additions & 0 deletions nginx/conf.d-test/portal-ui.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
Expand Down

0 comments on commit c22bf1b

Please sign in to comment.