feat: add .fr redirect to .bzh
This commit is contained in:
parent
0cdb0e9ada
commit
818661cef3
1 changed files with 42 additions and 0 deletions
|
|
@ -11,3 +11,45 @@ spec:
|
|||
issuerRef:
|
||||
name: $APP_CERT_ISSUER
|
||||
kind: ClusterIssuer
|
||||
---
|
||||
# Redirect with domain replacement
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: redirect-regfr-to-regbzh
|
||||
spec:
|
||||
redirectRegex:
|
||||
regex: ^https://(.*)regalette.fr(.*)
|
||||
replacement: https://${REDIRECT}${APP_DOMAIN}
|
||||
permanent: true
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: redirect-regfr-to-regbzh
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`regalette.fr`) || Host(`www.regalette.fr`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: api@internal
|
||||
kind: TraefikService
|
||||
middlewares:
|
||||
- name: redirect-regfr-to-regbzh
|
||||
tls:
|
||||
secretName: regalette.fr
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: regalette.fr
|
||||
spec:
|
||||
dnsNames:
|
||||
- regalette.fr
|
||||
- www.regalette.fr
|
||||
secretName: regalette.fr
|
||||
issuerRef:
|
||||
name: $APP_CERT_ISSUER
|
||||
kind: ClusterIssuer
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue