From e18895066f146287d48117a4f39e5eb80883a253 Mon Sep 17 00:00:00 2001 From: Eduard Tamsa Date: Mon, 6 Nov 2023 03:35:01 +0200 Subject: [PATCH] Refactor --- helm/service/templates/sammwise.yaml | 3 +++ helm/service/values.yaml | 2 +- next.config.js | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) 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',