ci: added no-www-to-www redirection
This commit is contained in:
parent
1e4bcbb8c6
commit
b79a023bfa
2 changed files with 5 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ metadata:
|
|||
spec:
|
||||
dnsNames:
|
||||
- $APP_DOMAIN
|
||||
- www.${APP_DOMAIN}
|
||||
secretName: $APP_DOMAIN
|
||||
issuerRef:
|
||||
name: $APP_CERT_ISSUER
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue