Merge branch 'update-middlewares' into 'develop'

Update middlewares

See merge request ldc-web/cluster-k8s!25
This commit is contained in:
Thibault Raquet 2024-07-09 14:25:05 +00:00
commit bbac5f1a80

View file

@ -139,23 +139,35 @@ spec:
# How to modify the URL to have the new target URL
replacement: "https://www.${1}"
# Empty middleware for staging
# Redirection from www to domain for staging
- apiVersion: traefik.io/v1alpha1 # Redirect no-www URLs to their www equivalent
kind: Middleware
metadata:
name: redirect-no-www-to-www
namespace: staging
spec:
retry:
redirectRegex:
# Apply a permanent redirection (HTTP 301)
permanent: true
# The regular expression to match and capture elements from the request URL
regex: "^https?://www\\.(.+)"
# How to modify the URL to have the new target URL
replacement: "https://${1}"
# Empty middleware for review
# Redirection from www to domain for review
- apiVersion: traefik.io/v1alpha1 # Redirect no-www URLs to their www equivalent
kind: Middleware
metadata:
name: redirect-no-www-to-www
namespace: review
spec:
retry:
redirectRegex:
# Apply a permanent redirection (HTTP 301)
permanent: true
# The regular expression to match and capture elements from the request URL
regex: "^https?://www\\.(.+)"
# How to modify the URL to have the new target URL
replacement: "https://${1}"
- apiVersion: traefik.io/v1alpha1
kind: MiddlewareTCP