2024-12-09 15:05:29 +01:00
|
|
|
{{- if index .Values.ocAuth.enabled }}
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: oc-auth-ingress
|
|
|
|
spec:
|
|
|
|
entryPoints:
|
|
|
|
- web
|
|
|
|
routes:
|
|
|
|
- kind: Rule
|
|
|
|
match: Host(`{{ .Values.host }}`) && PathPrefix(`/auth`)
|
|
|
|
priority: 10
|
|
|
|
services:
|
|
|
|
- kind: Service
|
|
|
|
name: oc-auth-svc
|
|
|
|
port: 8094
|
2025-01-08 23:05:38 +01:00
|
|
|
---
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
kind: Middleware
|
|
|
|
metadata:
|
|
|
|
name: strip-auth-prefix
|
|
|
|
spec:
|
|
|
|
stripPrefix:
|
|
|
|
prefixes:
|
|
|
|
- "/auth"
|
|
|
|
|
2024-12-09 15:05:29 +01:00
|
|
|
{{- end }}
|