feat: update traefik field for multiple hosts
This commit is contained in:
parent
6060312074
commit
fc8252ee23
@ -41,6 +41,7 @@ Helm Chart for Stalwart Mail Server - Secure & Modern All-in-One Mail Server (IM
|
|||||||
| service.ports.submission | int | `587` | |
|
| service.ports.submission | int | `587` | |
|
||||||
| service.type | string | `"NodePort"` | |
|
| service.type | string | `"NodePort"` | |
|
||||||
| traefik.enabled | bool | `false` | |
|
| traefik.enabled | bool | `false` | |
|
||||||
|
| traefik.hosts | list | `[]` | |
|
||||||
| traefik.ports.http | string | `"websecure"` | |
|
| traefik.ports.http | string | `"websecure"` | |
|
||||||
| traefik.ports.imaps | string | `"imaps"` | |
|
| traefik.ports.imaps | string | `"imaps"` | |
|
||||||
| traefik.ports.smtps | string | `"smtps"` | |
|
| traefik.ports.smtps | string | `"smtps"` | |
|
||||||
|
@ -9,13 +9,15 @@ spec:
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
- {{ $entryport }}
|
- {{ $entryport }}
|
||||||
routes:
|
routes:
|
||||||
- match: HostSNI(`{{ $.Values.traefik.host }}`)
|
{{- range $host := .Values.traefik.hosts }}
|
||||||
|
- match: HostSNI(`{{ $host }}`)
|
||||||
services:
|
services:
|
||||||
- name: {{ include "stalwart-mail.fullname" $ }}
|
- name: {{ include "stalwart-mail.fullname" $ }}
|
||||||
port: {{ $port }}
|
port: {{ $port }}
|
||||||
proxyProtocol:
|
proxyProtocol:
|
||||||
version: 2
|
version: 2
|
||||||
|
{{- end }}
|
||||||
tls:
|
tls:
|
||||||
passthrough: true
|
passthrough: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}{{/* end-if .enabled */}}
|
{{- end }}
|
||||||
|
@ -34,7 +34,7 @@ ingress:
|
|||||||
|
|
||||||
traefik:
|
traefik:
|
||||||
enabled: false
|
enabled: false
|
||||||
#host: "mail.example.com"
|
hosts: []
|
||||||
ports:
|
ports:
|
||||||
http: websecure
|
http: websecure
|
||||||
imaps: imaps
|
imaps: imaps
|
||||||
|
Loading…
Reference in New Issue
Block a user