Adjustments

This commit is contained in:
mr
2025-03-27 13:04:29 +01:00
parent 1ef92e5975
commit 4ef9bb399f
30 changed files with 68 additions and 299 deletions

View File

@@ -8,16 +8,16 @@ spec:
- web
routes:
- kind: Rule
match: Host(`{{ .Values.host }}`) && PathPrefix(`/auth`)
match: Host(`{{ .Values.host }}`) && PathPrefix(`/auth`)
priority: 10
services:
- kind: Service
name: oc-auth-svc
port: 8094
port: 8080
middlewares:
{{- if index .Values.ocAuth.enableTraefikProxyIntegration }}
- name: forward-auth
{{- end }}
#{{- if index .Values.ocAuth.enableTraefikProxyIntegration }}
#- name: forward-auth
#{{- end }}
- name: strip-auth-prefix
---
apiVersion: traefik.io/v1alpha1
@@ -25,7 +25,7 @@ kind: Middleware
metadata:
name: strip-auth-prefix
spec:
stripPrefix:
prefixes:
- "/auth"
replacePathRegex:
regex: ^/auth(.*)
replacement: /oc$1
{{- end }}