feat: add tls to chart

This commit is contained in:
Tommy 2024-06-08 08:12:23 +02:00
parent 5bbbfa3bbb
commit 51cc4adf2f
No known key found for this signature in database
5 changed files with 16 additions and 2 deletions

View file

@ -1,7 +1,7 @@
apiVersion: v2
name: stalwart-mail
description: Stalwart is a JMAP, IMAP4 and SMTP server
version: 0.1.2
version: 0.1.3
appVersion: 0.8.0
maintainers:
- name: Tommy Skaug

View file

@ -22,6 +22,10 @@ data:
protocol = "imap"
tls.implicit = true
[certificate."default"]
cert = "%{env:STALWART_TLS_CERT}%"
private-key = "%{env:STALWART_TLS_KEY}%"
[store."rocksdb"]
type = "rocksdb"
path = "/data"

View file

@ -65,6 +65,16 @@ spec:
secretKeyRef:
name: {{ .Values.existingSecret }}
key: STALWART_OAUTH_KEY
- name: STALWART_TLS_KEY
valueFrom:
secretKeyRef:
name: {{ .Values.tlsSecret }}
key: tls.key
- name: STALWART_TLS_CERT
valueFrom:
secretKeyRef:
name: {{ .Values.tlsSecret }}
key: tls.crt
volumeMounts:
- name: stalwart-data
mountPath: /data

View file

@ -5,7 +5,6 @@ metadata:
labels:
{{- include "stalwart-mail.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- name: http
port: 8080

View file

@ -11,6 +11,7 @@ ldap:
domains: "(&(|(objectClass=posixAccount)(objectClass=posixGroup))(|(mail=*@?)(mailAlias=*@?)))"
existingSecret: stalwart-mail-secret
tlsSecret: stalwart-mail-tls
replicaCount: 1