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
|
2025-03-27 13:04:29 +01:00
|
|
|
match: Host(`{{ .Values.host }}`) && PathPrefix(`/auth`)
|
2024-12-09 15:05:29 +01:00
|
|
|
priority: 10
|
|
|
|
services:
|
|
|
|
- kind: Service
|
|
|
|
name: oc-auth-svc
|
2025-03-27 13:04:29 +01:00
|
|
|
port: 8080
|
2025-01-21 15:25:25 +01:00
|
|
|
middlewares:
|
2025-03-27 13:04:29 +01:00
|
|
|
#{{- if index .Values.ocAuth.enableTraefikProxyIntegration }}
|
|
|
|
#- name: forward-auth
|
|
|
|
#{{- end }}
|
2025-01-21 15:25:25 +01:00
|
|
|
- name: strip-auth-prefix
|
2025-01-08 23:05:38 +01:00
|
|
|
---
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
kind: Middleware
|
|
|
|
metadata:
|
|
|
|
name: strip-auth-prefix
|
|
|
|
spec:
|
2025-03-27 13:04:29 +01:00
|
|
|
replacePathRegex:
|
|
|
|
regex: ^/auth(.*)
|
|
|
|
replacement: /oc$1
|
2025-01-21 15:25:25 +01:00
|
|
|
{{- end }}
|