mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
Had to manually apply new CRDs with `kubectl apply --server-side --force-conflicts -k https://github.com/traefik/traefik-helm-chart/traefik/crds/`
17 lines
508 B
YAML
17 lines
508 B
YAML
{{- if include "auth.create" . }}
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: traefik-forward-auth
|
|
namespace: {{ .Values.namespace }}
|
|
labels:
|
|
{{- include "common.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- include "common.annotations" . | nindent 4 }}
|
|
spec:
|
|
forwardAuth:
|
|
address: "http://traefik-forward-auth.{{ .Values.namespace }}.svc.cluster.local:{{ .Values.auth.port }}"
|
|
authResponseHeaders:
|
|
- X-Forwarded-User
|
|
trustForwardHeader: true
|
|
{{- end }} |