diff --git a/ops/helm/nomad/templates/gui-deployment.yml b/ops/helm/nomad/templates/gui-deployment.yml index 79507e9ab9676c7cb2246fff4cf4f87bbab6dd04..b252195dfb4a22982f478d539bd0c245e2800797 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';