diff --git a/dependencies/encyclopedia-gui b/dependencies/encyclopedia-gui index 0fc6234876cfc91e84f95005aa41df6e6317a6ce..40bd67030256126a66d623cc5a0568fcab06b294 160000 --- a/dependencies/encyclopedia-gui +++ b/dependencies/encyclopedia-gui @@ -1 +1 @@ -Subproject commit 0fc6234876cfc91e84f95005aa41df6e6317a6ce +Subproject commit 40bd67030256126a66d623cc5a0568fcab06b294 diff --git a/ops/helm/nomad/templates/api-deployment.yaml b/ops/helm/nomad/templates/api-deployment.yaml index 156728abbc516d91ca46b697af2a9a591c029deb..b12c37220d45b15d954fde52b0d1b0f10c9cbd28 100644 --- a/ops/helm/nomad/templates/api-deployment.yaml +++ b/ops/helm/nomad/templates/api-deployment.yaml @@ -96,6 +96,24 @@ data: "debug": {{ .Values.gui.debug }} }; --- +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "nomad.fullname" . }}-enc-conf-js + labels: + app.kubernetes.io/name: {{ include "nomad.name" . }}-enc-conf-js + helm.sh/chart: {{ include "nomad.chart" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} +data: + conf.js: | + window.nomadEnv = { + host: "https://{{ .Values.proxy.external.host }}{{ .Values.proxy.external.path }}", + userCookieDomain: ".{{ .Values.proxy.external.host }}", + guestUserToken: 'eyJhbGciOiJIUzI1NiIsImlhdCI6MTUyMzg4MDE1OSwiZXhwIjoxNjgxNTYwMTU5fQ.ey'+ + 'JpZCI6ImVuY2d1aSJ9.MsMWQa3IklH7cQTxRaIRSF9q8D_2LD5Fs2-irpWPTp4' + }; +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -145,6 +163,10 @@ spec: readOnly: true subPath: env.js name: gui-env-js + - mountPath: /app/dependencies/encyclopedia-gui/client/conf.js + readOnly: true + subPath: conf.js + name: enc-conf-js env: - name: NOMAD_SERVICE value: "app" @@ -224,6 +246,9 @@ spec: - name: gui-env-js configMap: name: {{ include "nomad.fullname" . }}-gui-env-js + - name: enc-conf-js + configMap: + name: {{ include "nomad.fullname" . }}-enc-conf-js - name: public-volume hostPath: path: {{ .Values.volumes.public }}