aboutsummaryrefslogtreecommitdiff
path: root/genenetwork/services/genenetwork.scm
diff options
context:
space:
mode:
authorPjotr Prins2024-03-21 03:28:27 -0500
committerPjotr Prins2024-03-21 03:28:27 -0500
commitaf7480a6fe3469b29723d0013926f17dd426e012 (patch)
tree8e1da167ecc05f5947b553b24c6b9b852fd064d1 /genenetwork/services/genenetwork.scm
parent626be3fff51bb5fda0adb3c80a49d6929fc44e3a (diff)
downloadgn-machines-af7480a6fe3469b29723d0013926f17dd426e012.tar.gz
Add timeout for proxies
Diffstat (limited to 'genenetwork/services/genenetwork.scm')
-rw-r--r--genenetwork/services/genenetwork.scm4
1 files changed, 3 insertions, 1 deletions
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{<genenetwork-configuration>} 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;"