Add certs stalwart

This commit is contained in:
Ruben Hensen
2026-01-25 23:16:30 +01:00
parent 656f1f1bff
commit 642bc9d2cf
3 changed files with 14 additions and 0 deletions
+5
View File
@@ -84,6 +84,11 @@ data:
user = "%{env:STALWART_ADMIN_USER}%" user = "%{env:STALWART_ADMIN_USER}%"
secret = "%{env:STALWART_ADMIN_PASSWORD}%" 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] [tracer.log]
type = "log" type = "log"
enable = true enable = true
+6
View File
@@ -66,6 +66,9 @@ spec:
- name: config - name: config
mountPath: /opt/stalwart/etc/config.toml mountPath: /opt/stalwart/etc/config.toml
subPath: config.toml subPath: config.toml
- name: tls-certs
mountPath: /opt/stalwart/certs
readOnly: true
volumes: volumes:
- name: stalwart-volume - name: stalwart-volume
persistentVolumeClaim: persistentVolumeClaim:
@@ -73,3 +76,6 @@ spec:
- name: config - name: config
configMap: configMap:
name: {{ include "stalwart.fullname" . }}-config name: {{ include "stalwart.fullname" . }}-config
- name: tls-certs
secret:
secretName: {{ .Values.tls.secretName }}
+3
View File
@@ -24,6 +24,9 @@ persistence:
replicaCount: 1 replicaCount: 1
tls:
secretName: letsencrypt-prod
config: config:
hostname: "mail.hensen.io" hostname: "mail.hensen.io"
# Whitelist cluster IPs to prevent ingress from being banned # Whitelist cluster IPs to prevent ingress from being banned