ci: added no-www-to-www redirection

This commit is contained in:
Noah Lancien 2025-09-19 15:08:34 +02:00
parent 1e4bcbb8c6
commit b79a023bfa
2 changed files with 5 additions and 1 deletions

View file

@ -43,10 +43,13 @@ spec:
- web
- websecure
routes:
- match: Host(`${APP_DOMAIN}`)
- match: Host(`${APP_DOMAIN}`) || Host(`www.${APP_DOMAIN}`)
kind: Rule
services:
- name: ${CI_PROJECT_PATH_SLUG}-service
port: 80
middlewares:
- name: redirect-no-www-to-www
tls:
secretName: ${CRT_TLS_NAME}

View file

@ -5,6 +5,7 @@ metadata:
spec:
dnsNames:
- $APP_DOMAIN
- www.${APP_DOMAIN}
secretName: $APP_DOMAIN
issuerRef:
name: $APP_CERT_ISSUER