From 81bbd7e88ac7b233701783c0acf1374e59a814ba Mon Sep 17 00:00:00 2001 From: Bakery Admin Date: Thu, 22 Jan 2026 19:31:54 +0100 Subject: [PATCH] Fix resources isues 20 --- .../mail/mailu-helm/mailu-ingress.yaml | 47 ------------------- .../mail/mailu-helm/prod/mailu-ingress.yaml | 4 ++ 2 files changed, 4 insertions(+), 47 deletions(-) delete mode 100644 infrastructure/platform/mail/mailu-helm/mailu-ingress.yaml diff --git a/infrastructure/platform/mail/mailu-helm/mailu-ingress.yaml b/infrastructure/platform/mail/mailu-helm/mailu-ingress.yaml deleted file mode 100644 index 5ecf32ab..00000000 --- a/infrastructure/platform/mail/mailu-helm/mailu-ingress.yaml +++ /dev/null @@ -1,47 +0,0 @@ -# ============================================================================= -# Mailu Ingress Configuration -# ============================================================================= -# This is the base ingress template. Use the environment-specific versions: -# -# Development: dev/mailu-ingress.yaml (mail.bakery-ia.dev) -# Production: prod/mailu-ingress.yaml (mail.bakewise.ai) -# -# Deploy with: -# kubectl apply -f infrastructure/platform/mail/mailu-helm/dev/mailu-ingress.yaml # for dev -# kubectl apply -f infrastructure/platform/mail/mailu-helm/prod/mailu-ingress.yaml # for prod -# ============================================================================= -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: mailu-ingress - namespace: bakery-ia - labels: - app.kubernetes.io/name: mailu - app.kubernetes.io/component: ingress - annotations: - nginx.ingress.kubernetes.io/proxy-body-size: "100m" - nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" - nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" - nginx.ingress.kubernetes.io/force-ssl-redirect: "true" - nginx.ingress.kubernetes.io/ssl-redirect: "true" - nginx.ingress.kubernetes.io/configuration-snippet: | - 14 more_set_headers "X-Forwarded-Proto $scheme"; - 15 more_set_headers "X-Forwarded-Port $server_port"; - 16 more_set_headers "X-Original-Forwarded-For $http_x_forwarded_for"; -spec: - ingressClassName: nginx - tls: - - hosts: - - mail.DOMAIN_PLACEHOLDER - secretName: TLS_SECRET_PLACEHOLDER - rules: - - host: mail.DOMAIN_PLACEHOLDER - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: mailu-front - port: - number: 80 diff --git a/infrastructure/platform/mail/mailu-helm/prod/mailu-ingress.yaml b/infrastructure/platform/mail/mailu-helm/prod/mailu-ingress.yaml index 3644f1bb..9e8aad0b 100644 --- a/infrastructure/platform/mail/mailu-helm/prod/mailu-ingress.yaml +++ b/infrastructure/platform/mail/mailu-helm/prod/mailu-ingress.yaml @@ -14,6 +14,10 @@ metadata: nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/ssl-redirect: "true" + nginx.ingress.kubernetes.io/configuration-snippet: | + more_set_headers "X-Forwarded-Proto $scheme"; + more_set_headers "X-Forwarded-Port $server_port"; + more_set_headers "X-Original-Forwarded-For $http_x_forwarded_for"; spec: ingressClassName: nginx tls: