Compare commits

...

2 Commits

Author SHA1 Message Date
8ba6cd2d7d
release: v0.0.6 2024-06-10 15:49:45 +02:00
fc8252ee23
feat: update traefik field for multiple hosts 2024-06-10 15:49:20 +02:00
4 changed files with 9 additions and 6 deletions

View File

@ -3,7 +3,7 @@ name: stalwart-mail
description: Helm Chart for Stalwart Mail Server - Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)
icon: https://stalw.art/home/apple-touch-icon.png
type: application
version: 0.0.5
version: 0.0.6
# renovate: image=docker.io/stalwartlabs/mail-server
appVersion: '0.8.1'
maintainers:

View File

@ -1,6 +1,6 @@
# stalwart-mail
![Version: 0.0.5](https://img.shields.io/badge/Version-0.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.8.1](https://img.shields.io/badge/AppVersion-0.8.1-informational?style=flat-square)
![Version: 0.0.6](https://img.shields.io/badge/Version-0.0.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.8.1](https://img.shields.io/badge/AppVersion-0.8.1-informational?style=flat-square)
Helm Chart for Stalwart Mail Server - Secure & Modern All-in-One Mail Server (IMAP, JMAP, SMTP)
@ -41,6 +41,7 @@ Helm Chart for Stalwart Mail Server - Secure & Modern All-in-One Mail Server (IM
| service.ports.submission | int | `587` | |
| service.type | string | `"NodePort"` | |
| traefik.enabled | bool | `false` | |
| traefik.hosts | list | `[]` | |
| traefik.ports.http | string | `"websecure"` | |
| traefik.ports.imaps | string | `"imaps"` | |
| traefik.ports.smtps | string | `"smtps"` | |

View File

@ -1,5 +1,5 @@
{{- if .Values.traefik.enabled }}
{{- range $port,$entryport := .Values.traefik.ports }}
{{- range $port, $entryport := .Values.traefik.ports }}
---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
@ -9,13 +9,15 @@ spec:
entryPoints:
- {{ $entryport }}
routes:
- match: HostSNI(`{{ $.Values.traefik.host }}`)
{{- range $host := .Values.traefik.hosts }}
- match: HostSNI(`{{ $host }}`)
services:
- name: {{ include "stalwart-mail.fullname" $ }}
port: {{ $port }}
proxyProtocol:
version: 2
{{- end }}
tls:
passthrough: true
{{- end }}
{{- end }}{{/* end-if .enabled */}}
{{- end }}

View File

@ -34,7 +34,7 @@ ingress:
traefik:
enabled: false
#host: "mail.example.com"
hosts: []
ports:
http: websecure
imaps: imaps