feat: use cert in traefik

This commit is contained in:
Loïc Kalbermatter 2024-06-10 18:12:41 +02:00
parent c19271e336
commit 375e477eb7
Signed by: PulseDev
GPG Key ID: 0516267FEC58F5F3
2 changed files with 3 additions and 4 deletions

View File

@ -9,15 +9,13 @@ spec:
entryPoints:
- {{ $entryport }}
routes:
{{- range $host := $.Values.traefik.hosts }}
{{- range $index, $host := $.Values.traefik.hosts }}
- match: HostSNI(`{{ $host }}`)
services:
- name: {{ include "stalwart-mail.fullname" $ }}
port: {{ $port }}
proxyProtocol:
version: 2
{{- end }}
tls:
passthrough: true
secretName: {{ $.Values.traefik.tlsSecretName }}
{{- end }}
{{- end }}

View File

@ -34,6 +34,7 @@ ingress:
traefik:
enabled: false
tlsSecretName: ''
hosts: []
ports:
http: websecure