quorate/vendor/platform/zitadel/route.yaml

58 lines
1.4 KiB
YAML

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: zitadel
namespace: zitadel
spec:
parentRefs:
- name: gateway-relay
namespace: kube-system
sectionName: https
hostnames:
- auth.quorate.dev
rules:
- matches:
- path:
type: Exact
value: /robots.txt
filters:
- type: RequestRedirect
requestRedirect:
hostname: quorate.dev
port: 443
statusCode: 301
path:
type: ReplaceFullPath
replaceFullPath: /robots-deny.txt
- type: ResponseHeaderModifier
responseHeaderModifier:
set:
- name: X-Robots-Tag
value: noindex
- matches:
- path:
type: PathPrefix
value: /ui/v2/login
filters:
- type: ResponseHeaderModifier
responseHeaderModifier:
set:
- name: X-Robots-Tag
value: noindex
backendRefs:
- name: zitadel-login
port: 3000
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: ResponseHeaderModifier
responseHeaderModifier:
set:
- name: X-Robots-Tag
value: noindex
backendRefs:
- name: zitadel
port: 8080