Adjustments
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user