From a77654e7cea8a4d7b656ae88f7112e985b4cfaeb Mon Sep 17 00:00:00 2001 From: Markus Scheidgen <markus.scheidgen@gmail.com> Date: Mon, 27 Jul 2020 12:28:01 +0200 Subject: [PATCH] Added edit timeout to allow long running edits. [skip-ci] --- ops/helm/nomad/templates/gui-deployment.yml | 6 ++++++ ops/helm/nomad/values.yaml | 1 + 2 files changed, 7 insertions(+) diff --git a/ops/helm/nomad/templates/gui-deployment.yml b/ops/helm/nomad/templates/gui-deployment.yml index 35955e501f..d014dc9ac1 100644 --- a/ops/helm/nomad/templates/gui-deployment.yml +++ b/ops/helm/nomad/templates/gui-deployment.yml @@ -101,6 +101,12 @@ data: proxy_read_timeout {{ .Values.proxy.mirrorTimeout }}; proxy_pass http://{{ include "nomad.fullname" . }}-app:8000; } + + location ~ \/api\/repo\/edit { + proxy_buffering off; + proxy_read_timeout {{ .Values.proxy.editTimeout }}; + proxy_pass http://{{ include "nomad.fullname" . }}-app:8000; + } } --- apiVersion: apps/v1 diff --git a/ops/helm/nomad/values.yaml b/ops/helm/nomad/values.yaml index 13ed4af876..1cc0149c33 100644 --- a/ops/helm/nomad/values.yaml +++ b/ops/helm/nomad/values.yaml @@ -98,6 +98,7 @@ proxy: nodeIP: timeout: 120 mirrorTimeout: 600 + editTimeout: 1800 external: host: "labdev-nomad.esc.rzg.mpg.de" port: 80 -- GitLab