Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(chart): warn when the ingress URL renders a blank dashboard
Yudhi Armyndharis6ed6f347bd7b
diff --git a/charts/openwa/templates/NOTES.txt b/charts/openwa/templates/NOTES.txtindex 8182d633e..9a898a58f 100644--- a/charts/openwa/templates/NOTES.txt+++ b/charts/openwa/templates/NOTES.txt@@ -16,4 +16,14 @@ OpenWA has been installed as release "{{ .Release.Name }}".then open http://localhost:2785 (dashboard) or call http://localhost:2785/api.{{- if .Values.ingress.enabled }}Or via the ingress host: http{{ if .Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.host }}+{{- $env := .Values.env | default dict }}+{{- $csp := toString (get $env "CSP_UPGRADE_INSECURE_REQUESTS") }}+{{- $upgrade := or (eq $csp "true") (and (ne $csp "false") (eq (toString (get $env "NODE_ENV")) "production")) }}+{{- if and (not .Values.ingress.tls) $upgrade }}++ WARNING: this ingress has no TLS, but the app tells browsers to upgrade insecure requests, so+ over plain http the dashboard fetches its scripts over https and renders blank. Terminate TLS+ (ingress.tls, or in front of the ingress) or set env.CSP_UPGRADE_INSECURE_REQUESTS="false".+ See docs/12-troubleshooting-faq.md.+{{- end }}{{- end }}