From d0eb2d42f2a77945b37cc2b00ad8218c3ec9ff72 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 9 Nov 2022 11:33:57 +0000 Subject: [PATCH] Updating nginx conf to allow export a lot longer period before timeout. --- hosting/nginx.dev.conf.hbs | 9 +++++++++ hosting/nginx.prod.conf.hbs | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/hosting/nginx.dev.conf.hbs b/hosting/nginx.dev.conf.hbs index 39a8dc52af..7bc8100e45 100644 --- a/hosting/nginx.dev.conf.hbs +++ b/hosting/nginx.dev.conf.hbs @@ -66,6 +66,15 @@ http { proxy_set_header Connection ""; } + location /api/backups/ { + proxy_read_timeout 1800s; + proxy_connect_timeout 1800s; + proxy_send_timeout 1800s; + proxy_pass http://app-service; + proxy_http_version 1.1; + proxy_set_header Connection ""; + } + location /api/ { proxy_read_timeout 120s; proxy_connect_timeout 120s; diff --git a/hosting/nginx.prod.conf.hbs b/hosting/nginx.prod.conf.hbs index 114a4575d0..fe6f2529d3 100644 --- a/hosting/nginx.prod.conf.hbs +++ b/hosting/nginx.prod.conf.hbs @@ -116,6 +116,15 @@ http { rewrite ^/worker/(.*)$ /$1 break; } + location /api/backups/ { + proxy_read_timeout 1800s; + proxy_connect_timeout 1800s; + proxy_send_timeout 1800s; + proxy_pass http://app-service; + proxy_http_version 1.1; + proxy_set_header Connection ""; + } + location /api/ { # calls to the API are rate limited with bursting limit_req zone=ratelimit burst=20 nodelay;