Added choice for SMTP server

This commit is contained in:
2023-07-17 23:33:32 +02:00
parent fa6f0ff85a
commit 8cda255fae
3 changed files with 15 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ spec:
- secretKey: COMPOSER_AUTH
remoteRef:
key: secret/GITLAB-COMPOSER-AUTH
{{- if eq (.Values.email.smtpServer | default "smtp2go" ) "smtp2go" }}
- secretKey: SMTP_USER
remoteRef:
key: secret/SMTP-USER
@@ -29,6 +30,17 @@ spec:
- secretKey: SMTP_HOST
remoteRef:
key: secret/SMTP-HOST
{{- else }}
- secretKey: SMTP_USER
remoteRef:
key: secret/AWS-SMTP-USER
- secretKey: SMTP_PASS
remoteRef:
key: secret/AWS-SMTP-PASSWORD
- secretRef: SMTP_HOST
remoteRef:
key: secret/AWS-SMTP-HOST
{{- end }}
- secretKey: WPC_REGISTRATION_SECRET
remoteRef:
key: secret/WPC-REGISTRATION-SECRET

View File

@@ -24,6 +24,8 @@ email:
# - customer.tld
# emails:
# - mail@customer.tld
# Set the SMTP server to use for the site
smtpServer: smtp2go
# Database configuration
database: