From 375e477eb7cc11c5ceead5399160e4916c9eb5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Kalbermatter?= Date: Mon, 10 Jun 2024 18:12:41 +0200 Subject: [PATCH] feat: use cert in traefik --- templates/traefik.yaml | 6 ++---- values.yaml | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/traefik.yaml b/templates/traefik.yaml index e9f8fb1..8a056dd 100644 --- a/templates/traefik.yaml +++ b/templates/traefik.yaml @@ -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 }} diff --git a/values.yaml b/values.yaml index 18f5bef..0457623 100644 --- a/values.yaml +++ b/values.yaml @@ -34,6 +34,7 @@ ingress: traefik: enabled: false + tlsSecretName: '' hosts: [] ports: http: websecure