From c4a57eeab25fae3005ac0c1d045ddfefd3ef2b7a Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@private.storage> Date: Fri, 10 Dec 2021 17:39:31 +0000 Subject: [PATCH] NGINX: Increase timeouts --- nixos/modules/issuer.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/modules/issuer.nix b/nixos/modules/issuer.nix index e0d1f656..cd8dde46 100644 --- a/nixos/modules/issuer.nix +++ b/nixos/modules/issuer.nix @@ -214,6 +214,14 @@ in { # we pass less scanning spam on to our backend # Want a regex instead? try locations."~ /v\d+/" proxyPass = "http://127.0.0.1:${internalHttpPort}"; + + # Up the proxy timeouts from the default of 60s + # (don't hang up before receiving our client's ZKAPs) + extraConfig = '' + proxy_read_timeout 600s; + proxy_send_timeout 600s; + keepalive_timeout 600s; + ''; }; locations."/metrics" = { # Only allow our monitoringvpn subnet -- GitLab