diff --git a/apps/nxtgauge-frontend-solid/base/ingress.yaml b/apps/nxtgauge-frontend-solid/base/ingress.yaml index 4b88657..5751e8a 100644 --- a/apps/nxtgauge-frontend-solid/base/ingress.yaml +++ b/apps/nxtgauge-frontend-solid/base/ingress.yaml @@ -12,6 +12,14 @@ spec: - hosts: - test111.nxtgauge.com secretName: test111-tls + # nxtgauge.com/www serve the SAME app/deployment as test111 - the only + # difference is src/middleware.ts redirects "/" on these two hosts to + # /coming-soon (pre-launch placeholder) while test111 shows the real + # app. No separate service/deployment needed. + - hosts: + - nxtgauge.com + - www.nxtgauge.com + secretName: nxtgauge-com-tls rules: - host: test111.nxtgauge.com http: @@ -34,3 +42,37 @@ spec: name: nxtgauge-frontend-solid port: number: 80 + - host: nxtgauge.com + http: + paths: + - path: /api + pathType: Prefix + backend: + service: + name: nxtgauge-rust-gateway + port: + number: 9100 + - path: / + pathType: Prefix + backend: + service: + name: nxtgauge-frontend-solid + port: + number: 80 + - host: www.nxtgauge.com + http: + paths: + - path: /api + pathType: Prefix + backend: + service: + name: nxtgauge-rust-gateway + port: + number: 9100 + - path: / + pathType: Prefix + backend: + service: + name: nxtgauge-frontend-solid + port: + number: 80 diff --git a/clusters/production/kustomization.yaml b/clusters/production/kustomization.yaml index 9c082ae..d70e560 100644 --- a/clusters/production/kustomization.yaml +++ b/clusters/production/kustomization.yaml @@ -5,7 +5,6 @@ resources: - ../../apps/nxtgauge-backend-rust/overlays/prod - ../../apps/nxtgauge-frontend-solid/overlays/prod - ../../apps/nxtgauge-admin-solid/overlays/prod - - ../../apps/nxtgauge-coming-soon/overlays/prod - ../../apps/nxtgauge-ai-assistant/overlays/prod - ../../apps/github-actions-runners/base - ../../apps/ollama/base