Skip to content

Commit

Permalink
2531 - Fix for large filesize failures/timeout (#2532)
Browse files Browse the repository at this point in the history
* bumping size for quick test

* updating timeouts to Mo's tested version

---------

Co-authored-by: andrew-jameson <ajameson@teamraft.com>
  • Loading branch information
andrew-jameson and andrew-jameson authored May 25, 2023
1 parent e4bf0f4 commit 987fba8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions tdrs-frontend/nginx/cloud.gov/locations.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ location ~ ^/(v1|admin|static/admin|swagger|redocs) {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;

proxy_connect_timeout 60;
proxy_send_timeout 60;
proxy_connect_timeout 900;
proxy_read_timeout 300;
proxy_send_timeout 300;
send_timeout 900;
proxy_buffer_size 4k;
proxy_temp_file_write_size 64k;

Expand Down
6 changes: 4 additions & 2 deletions tdrs-frontend/nginx/local/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ http {
set $CSP "${CSP}worker-src 'none';";
add_header Content-Security-Policy $CSP;

proxy_connect_timeout 60;
proxy_send_timeout 60;
proxy_connect_timeout 300;
proxy_read_timeout 300;
proxy_send_timeout 300;
send_timeout 900;
proxy_buffer_size 4k;
proxy_temp_file_write_size 64k;
}
Expand Down
6 changes: 4 additions & 2 deletions tdrs-frontend/nginx/local/locations.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ location ~ ^/(v1|admin|static/admin|swagger|redocs) {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;

proxy_connect_timeout 60;
proxy_send_timeout 60;
proxy_connect_timeout 300;
proxy_read_timeout 300;
proxy_send_timeout 300;
send_timeout 900;
proxy_buffer_size 4k;
proxy_temp_file_write_size 64k;
proxy_pass_header x-csrftoken;
Expand Down

0 comments on commit 987fba8

Please sign in to comment.