Skip to content

Commit 94ce79b

Browse files
committed
Attempt to disable TLS by default to assist with CI
1 parent ca1370e commit 94ce79b

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ spec:
3838
- name: "opendkim-keys"
3939
secret:
4040
secretName: {{ template "dockermailserver.fullname" . }}-secrets
41+
{{ if .Values.pod.dockermailserver.ssl_type }}
4142
- name: "ssl-cert"
4243
secret:
4344
{{ if .Values.ssl.useExisting }}
4445
secretName: {{ .Values.ssl.existingName }}
4546
{{- else }}
4647
secretName: {{ template "dockermailserver.fullname" . }}-tls
48+
{{- end }}
4749
{{- end }}
4850
initContainers:
4951
- name: prep-config
@@ -74,9 +76,11 @@ spec:
7476
volumeMounts:
7577
- name: config
7678
mountPath: /tmp/docker-mailserver
79+
{{ if .Values.pod.dockermailserver.ssl_type }}
7780
- name: ssl-cert
7881
mountPath: /tmp/ssl
7982
readOnly: true
83+
{{- end }}
8084
- name: data
8185
mountPath: /var/mail
8286
subPath: mail

charts/docker-mailserver/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ pod:
148148
enable_dovecot_replication: true
149149

150150
smtp_only: 0
151-
# ssl_type: "manual"
151+
152+
# Set this to "manual" or "letsencrypt". Leaving it set empty will disable SSL support
153+
ssl_type:
154+
152155
# ssl_cert_path: "/tmp/ssl/tls.crt"
153156
# ssl_key_path: "/tmp/ssl/tls.key"
154157
tls_level:

0 commit comments

Comments
 (0)