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

@@ -1,5 +1,5 @@
variables: variables:
HELM_CHART_VERSION: "99.6.20" HELM_CHART_VERSION: "99.6.21"
stages: stages:
- deploy - deploy

View File

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

View File

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