Files
k8scd/stalwart/templates/ingress.yaml
T
Ruben Hensen 8cba45ecb1 Revert CORS, HTTPS headers, and well-known changes
Reverts the following commits:
- 88e29c0 Add a .well-known to the base domain.
- 01abc2c No auto https for mail
- b7d6265 Add forwarde https headers
- aa5a806 Add https forward headers
- d32af60 Add cors to stalwart

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 20:31:31 +01:00

50 lines
1.2 KiB
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "stalwart.fullname" . }}
labels:
{{- include "stalwart.labels" . | nindent 4 }}
annotations:
cert-manager.io/cluster-issuer: prod-cluster-issuer
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
spec:
ingressClassName: nginx
rules:
- host: mail.hensen.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "stalwart.fullname" . }}
port:
number: 8080
- host: autoconfig.hensen.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "stalwart.fullname" . }}
port:
number: 8080
- host: autodiscover.hensen.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "stalwart.fullname" . }}
port:
number: 8080
tls:
- secretName: letsencrypt-prod
hosts:
- mail.hensen.io
- autoconfig.hensen.io
- autodiscover.hensen.io