From db7b4170d3181b4c2900b064533ec79d838b1cf0 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Wed, 28 May 2025 16:51:29 +0200 Subject: [PATCH] feat: Add rgpd replacement --- manifest.yaml | 12 ++++++++++++ production-resources.yaml | 13 +------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/manifest.yaml b/manifest.yaml index 5fb05733..0cbdd26a 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -120,10 +120,22 @@ spec: port: 80 middlewares: - name: redirect-no-www-to-www + - name: redirect-ldc-rgpd-to-rgpd tls: secretName: ${CRT_TLS_NAME} --- +# Redirect with domain replacement +apiVersion: traefik.io/v1alpha1 +kind: Middleware +metadata: + name: redirect-ldc-rgpd-to-rgpd +spec: + redirectRegex: + regex: ^https://${REDIRECT}${APP_DOMAIN}/rgpd/(professionnels|salaries|consommateurs)(/(en|de))? + replacement: https://rgpd.ldc.fr/fr/${1} + permanent: true +--- apiVersion: batch/v1 kind: CronJob metadata: diff --git a/production-resources.yaml b/production-resources.yaml index 5c62378d..7ae454ba 100644 --- a/production-resources.yaml +++ b/production-resources.yaml @@ -10,15 +10,4 @@ spec: secretName: $APP_DOMAIN issuerRef: name: $APP_CERT_ISSUER - kind: ClusterIssuer ---- -# Redirect with domain replacement -apiVersion: traefik.io/v1alpha1 -kind: Middleware -metadata: - name: redirect-ldc-rgpd-to-rgpd -spec: - redirectRegex: - regex: ^https://${REDIRECT}${APP_DOMAIN}/rgpd/(professionnels|salaries|consommateurs)(/(en|de))? - replacement: https://rgpd.ldc.fr/fr/${1} - permanent: true + kind: ClusterIssuer \ No newline at end of file