Added email settings and bumped to version 0.7.0

This commit is contained in:
2023-03-28 15:02:41 +00:00
parent a5b13a2266
commit b50e84afe0
4 changed files with 32 additions and 25 deletions

View File

@@ -7,8 +7,26 @@ metadata:
data:
SMTP_PORT: '2525'
SMTP_AUTH: 'true'
{{- if .Values.email }}
{{- if .Values.email.forceFromEmail }}
SMTP_FORCE_FROM: {{ .Values.email.forceFromEmail }}
{{- end }}
{{- if .Values.email.forceFromName }}
SMTP_FORCE_FROM_NAME: {{ .Values.email.forceFromName }}
{{- end }}
{{- if .Values.email.allowedDomains }}
# join list of allowd domains with comma
SMTP_ALLOWED_DOMAINS: {{ .Values.email.allowedDomains | join "," }}
{{- end }}
{{- if .Values.email.allowedEmails }}
# join list of allowd emails with comma
SMTP_ALLOWED_EMAILS: {{ .Values.email.allowedEmails | join "," }}
{{- end }}
{{- else }}
SMTP_FORCE_FROM: "noreply@customer.v3.nu"
SMTP_FROM_NAME: "V3 Customer Mailer"
{{- end }}
WP_ENV: "production"
{{- if .Values.site.overrideMainUrl }}
WP_HOME: "https://{{ .Values.site.overrideMainUrl }}"