From cbe5105f824e48aa2c6782ad7708174b5bd3f70f Mon Sep 17 00:00:00 2001 From: Markus Scheidgen <markus.scheidgen@gmail.com> Date: Sun, 6 Oct 2019 09:39:55 +0200 Subject: [PATCH] Added docs redirect. [skip-ci] --- ops/helm/nomad/templates/gui-deployment.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ops/helm/nomad/templates/gui-deployment.yml b/ops/helm/nomad/templates/gui-deployment.yml index 79507e9ab9..b252195dfb 100644 --- a/ops/helm/nomad/templates/gui-deployment.yml +++ b/ops/helm/nomad/templates/gui-deployment.yml @@ -29,6 +29,13 @@ data: try_files $uri {{ .Values.proxy.external.path }}/gui/index.html; } + location {{ .Values.proxy.external.path }}/docs { + proxy_set_header Host $host; + proxy_pass_request_headers on; + proxy_pass http://{{ include "nomad.fullname" . }}-app:8000; + try_files $uri {{ .Values.proxy.external.path }}/docs/index.html; + } + location {{ .Values.proxy.external.path }}/gui/service-worker.js { add_header Last-Modified $date_gmt; add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; -- GitLab