From 642bc9d2cf60cb7d0b90bd6fe51e759e2a55d143 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Sun, 25 Jan 2026 23:16:30 +0100 Subject: [PATCH] Add certs stalwart --- stalwart/templates/configmap.yaml | 5 +++++ stalwart/templates/deployment.yaml | 6 ++++++ stalwart/values.yaml | 3 +++ 3 files changed, 14 insertions(+) diff --git a/stalwart/templates/configmap.yaml b/stalwart/templates/configmap.yaml index 14cb689..3f22620 100644 --- a/stalwart/templates/configmap.yaml +++ b/stalwart/templates/configmap.yaml @@ -84,6 +84,11 @@ data: user = "%{env:STALWART_ADMIN_USER}%" secret = "%{env:STALWART_ADMIN_PASSWORD}%" + [certificate."default"] + cert = "file:///opt/stalwart/certs/tls.crt" + private-key = "file:///opt/stalwart/certs/tls.key" + default = true + [tracer.log] type = "log" enable = true diff --git a/stalwart/templates/deployment.yaml b/stalwart/templates/deployment.yaml index 40179d9..22d4985 100644 --- a/stalwart/templates/deployment.yaml +++ b/stalwart/templates/deployment.yaml @@ -66,6 +66,9 @@ spec: - name: config mountPath: /opt/stalwart/etc/config.toml subPath: config.toml + - name: tls-certs + mountPath: /opt/stalwart/certs + readOnly: true volumes: - name: stalwart-volume persistentVolumeClaim: @@ -73,3 +76,6 @@ spec: - name: config configMap: name: {{ include "stalwart.fullname" . }}-config + - name: tls-certs + secret: + secretName: {{ .Values.tls.secretName }} diff --git a/stalwart/values.yaml b/stalwart/values.yaml index eb0ac51..ab6f6c9 100644 --- a/stalwart/values.yaml +++ b/stalwart/values.yaml @@ -24,6 +24,9 @@ persistence: replicaCount: 1 +tls: + secretName: letsencrypt-prod + config: hostname: "mail.hensen.io" # Whitelist cluster IPs to prevent ingress from being banned