Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
TaEduard committed Nov 6, 2023
1 parent ba09662 commit e188950
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions helm/service/templates/sammwise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion helm/service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]

Expand Down
8 changes: 4 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
has: [
{
type: 'host',
value: 'rancher.vzxy.net',
value: process.env.RANCHER_SERVER,
},
],
source: '/',
Expand All @@ -34,7 +34,7 @@ module.exports = {
has: [
{
type: 'host',
value: 'rancher.vzxy.net',
value: process.env.RANCHER_SERVER,
},
],
source: '/about',
Expand All @@ -44,7 +44,7 @@ module.exports = {
has: [
{
type: 'host',
value: 'rancher.vzxy.net',
value: process.env.RANCHER_SERVER,
},
],
source: '/assessment',
Expand All @@ -54,7 +54,7 @@ module.exports = {
has: [
{
type: 'host',
value: 'rancher.vzxy.net',
value: process.env.RANCHER_SERVER,
},
],
source: '/results',
Expand Down

0 comments on commit e188950

Please sign in to comment.