diff --git a/helm/service/templates/sammwise.yaml b/helm/service/templates/sammwise.yaml index 540e4d4..6215518 100644 --- a/helm/service/templates/sammwise.yaml +++ b/helm/service/templates/sammwise.yaml @@ -19,6 +19,9 @@ spec: env: - name: NEXT_PUBLIC_BASE_PATH value: {{ .Values.sammwise.NEXT_PUBLIC_BASE_PATH | quote }} + - name: RANCHER_SERVER + value: {{ .Values.sammwise.RANCHER_SERVER | quote }} + # {{- end }} --- apiVersion: v1 diff --git a/helm/service/values.yaml b/helm/service/values.yaml index 7211a59..f401e7d 100644 --- a/helm/service/values.yaml +++ b/helm/service/values.yaml @@ -6,7 +6,7 @@ sammwise: image: sjultra/sammwise:latest # port: 80 NEXT_PUBLIC_BASE_PATH: "/k8s/clusters/c-m-26nk9h9f/api/v1/namespaces/sammwise/services/http:sammwise:80/proxy" - + RANCHER_SERVER: "https://rancher.vzxy.net" # issuer: # issuerEmail: ops@sjultra.com diff --git a/next.config.js b/next.config.js index 9344a57..ab7f419 100644 --- a/next.config.js +++ b/next.config.js @@ -24,7 +24,7 @@ module.exports = { has: [ { type: 'host', - value: 'rancher.vzxy.net', + value: process.env.RANCHER_SERVER, }, ], source: '/', @@ -34,7 +34,7 @@ module.exports = { has: [ { type: 'host', - value: 'rancher.vzxy.net', + value: process.env.RANCHER_SERVER, }, ], source: '/about', @@ -44,7 +44,7 @@ module.exports = { has: [ { type: 'host', - value: 'rancher.vzxy.net', + value: process.env.RANCHER_SERVER, }, ], source: '/assessment', @@ -54,7 +54,7 @@ module.exports = { has: [ { type: 'host', - value: 'rancher.vzxy.net', + value: process.env.RANCHER_SERVER, }, ], source: '/results',