feat(platform): wire OTP SMS env from platform Secret via Helm
Build and Deploy Platform / build-and-deploy (push) Successful in 32m19s
Build and Deploy Platform / build-and-deploy (push) Successful in 32m19s
Enable backend.sms in the chart so MizbanSMS credentials from the platform Secret are injected into the backend deployment for production OTP delivery. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -105,6 +105,26 @@ spec:
|
||||
key: elastic-password
|
||||
- name: FRONTEND_URL
|
||||
value: {{ include "cloudhost-platform.corsOrigins" . | quote }}
|
||||
{{- if .Values.backend.sms.enabled }}
|
||||
- name: SMS_PROVIDER
|
||||
value: {{ .Values.backend.sms.provider | default "mizbansms" | quote }}
|
||||
- name: MIZBANSMS_FROM
|
||||
value: {{ .Values.backend.sms.from | default "5000467254" | quote }}
|
||||
- name: MIZBANSMS_API
|
||||
value: {{ .Values.backend.sms.api | default "2016" | quote }}
|
||||
- name: MIZBANSMS_USERTYPE
|
||||
value: {{ .Values.backend.sms.userType | default "2" | quote }}
|
||||
- name: MIZBANSMS_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "cloudhost-platform.secretName" . }}
|
||||
key: mizbansms-username
|
||||
- name: MIZBANSMS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "cloudhost-platform.secretName" . }}
|
||||
key: mizbansms-password
|
||||
{{- end }}
|
||||
{{- include "cloudhost-platform.buildEnv" . | nindent 12 }}
|
||||
{{- range $key, $val := .Values.backend.env }}
|
||||
- name: {{ $key }}
|
||||
|
||||
Reference in New Issue
Block a user