From af7480a6fe3469b29723d0013926f17dd426e012 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 21 Mar 2024 03:28:27 -0500 Subject: Add timeout for proxies --- genenetwork/services/genenetwork.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'genenetwork/services') diff --git a/genenetwork/services/genenetwork.scm b/genenetwork/services/genenetwork.scm index aa4ac77..cdb7ff4 100644 --- a/genenetwork/services/genenetwork.scm +++ b/genenetwork/services/genenetwork.scm @@ -198,6 +198,7 @@ object." (port gn2-port)))) (wsgi-app-module "gn2.wsgi") (workers 20) + (timeout 1200) (environment-variables (list (environment-variable (name "GN2_PROFILE") @@ -302,7 +303,8 @@ a @code{} record." (body (list (string-append "proxy_pass http://localhost:" (number->string gn2-port) ";") "proxy_set_header Host $host;" - "proxy_set_header X-Forwarded-Proto $scheme;"))) + "proxy_read_timeout 20m;" + "proxy_set_header X-Forwarded-Proto $scheme;"))) (nginx-location-configuration (uri "/api3/") (body (list "rewrite /api3/(.*) /api/$1 break;" -- cgit v1.2.3