Make enable_starttls configurable by envvars (#20321)
ENABLE_STARTTLS is designed to replace ENABLE_STARTTLS_AUTO by accepting three values: 'auto' (the default), 'always', and 'never'. If ENABLE_STARTTLS isn't provided, we fall back to ENABLE_STARTTLS_AUTO. In this way, this change should be fully backwards compatible. Resolves #20311
This commit is contained in:
parent
e8f00370c6
commit
f0d8cc8184
|
@ -58,6 +58,9 @@ data:
|
||||||
{{- if .Values.mastodon.smtp.domain }}
|
{{- if .Values.mastodon.smtp.domain }}
|
||||||
SMTP_DOMAIN: {{ .Values.mastodon.smtp.domain }}
|
SMTP_DOMAIN: {{ .Values.mastodon.smtp.domain }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.mastodon.smtp.enable_starttls }}
|
||||||
|
SMTP_ENABLE_STARTTLS: {{ .Values.mastodon.smtp.enable_starttls | quote }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.enable_starttls_auto }}
|
{{- if .Values.mastodon.smtp.enable_starttls_auto }}
|
||||||
SMTP_ENABLE_STARTTLS_AUTO: {{ .Values.mastodon.smtp.enable_starttls_auto | quote }}
|
SMTP_ENABLE_STARTTLS_AUTO: {{ .Values.mastodon.smtp.enable_starttls_auto | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -77,7 +77,7 @@ mastodon:
|
||||||
ca_file: /etc/ssl/certs/ca-certificates.crt
|
ca_file: /etc/ssl/certs/ca-certificates.crt
|
||||||
delivery_method: smtp
|
delivery_method: smtp
|
||||||
domain:
|
domain:
|
||||||
enable_starttls_auto: true
|
enable_starttls: 'auto'
|
||||||
from_address: notifications@example.com
|
from_address: notifications@example.com
|
||||||
openssl_verify_mode: peer
|
openssl_verify_mode: peer
|
||||||
port: 587
|
port: 587
|
||||||
|
|
Loading…
Reference in New Issue
Block a user