From 88e29c0ed24969433ad097043def1ce3e5c19481 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Sun, 25 Jan 2026 20:23:08 +0100 Subject: [PATCH] Add a .well-known to the base domain. --- stalwart/templates/ingress.yaml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/stalwart/templates/ingress.yaml b/stalwart/templates/ingress.yaml index 285bb41..c308c7c 100644 --- a/stalwart/templates/ingress.yaml +++ b/stalwart/templates/ingress.yaml @@ -58,3 +58,41 @@ spec: - mail.hensen.io - autoconfig.hensen.io - autodiscover.hensen.io +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ include "stalwart.fullname" . }}-wellknown + 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-redirect: "false" + nginx.ingress.kubernetes.io/enable-cors: "true" + nginx.ingress.kubernetes.io/cors-allow-origin: "*" + nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE, OPTIONS" + nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" + nginx.ingress.kubernetes.io/cors-allow-credentials: "true" + nginx.ingress.kubernetes.io/configuration-snippet: | + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Ssl on; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +spec: + ingressClassName: nginx + rules: + - host: hensen.io + http: + paths: + - path: /.well-known + pathType: Prefix + backend: + service: + name: {{ include "stalwart.fullname" . }} + port: + number: 8080 + tls: + - secretName: letsencrypt-prod-wellknown + hosts: + - hensen.io