Serve the UI over plain HTTP only (POC)
Drop the ingress TLS block and cert-manager annotation, disable the nginx ssl-redirect, and hardcode AUTH_URL to http://<ingress.host>. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
64275f8544
commit
fb8b3fdcfb
@@ -10,13 +10,10 @@ metadata:
|
||||
# Headroom for large request headers (chunked Auth.js session cookies).
|
||||
nginx.ingress.kubernetes.io/proxy-buffer-size: "16k"
|
||||
nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
|
||||
cert-manager.io/cluster-issuer: sectigo-acme
|
||||
# POC runs plain HTTP — no TLS, no redirect to https.
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .Values.ingress.host | quote }}
|
||||
secretName: {{ include "it-cost-dashboard.fullname" . }}-server-tls
|
||||
rules:
|
||||
- host: {{ required "ingress.host is required" .Values.ingress.host | quote }}
|
||||
http:
|
||||
|
||||
@@ -20,6 +20,5 @@ stringData:
|
||||
LOCAL_ADMIN_PASSWORD: {{ required "secrets.localAdminPassword is required" .Values.secrets.localAdminPassword | quote }}
|
||||
|
||||
# Derived from the ingress host so Auth.js builds correct absolute redirect
|
||||
# URLs regardless of X-Forwarded-Proto. Local Docker Desktop ingress has no
|
||||
# TLS, so the scheme is http (override ingress.scheme if TLS is added later).
|
||||
AUTH_URL: {{ printf "%s://%s" (.Values.ingress.scheme | default "http") (required "ingress.host is required" .Values.ingress.host) | quote }}
|
||||
# URLs. POC UI is plain HTTP only (no TLS anywhere).
|
||||
AUTH_URL: {{ printf "http://%s" (required "ingress.host is required" .Values.ingress.host) | quote }}
|
||||
|
||||
Reference in New Issue
Block a user