mirror of
https://github.com/thomseddon/traefik-forward-auth.git
synced 2026-02-03 05:13:22 +00:00
Prior to this change, the request URI was only ever read from the X-Forwarded-Uri header which was only set when the container was accessed via the forwardauth middleware. As such, it was necessary to apply the treafik-forward-auth middleware to the treafik-forward-auth container when running auth host mode. This is a quirk, unnecessary complexity and is a frequent source of configuration issues.
21 lines
336 B
YAML
21 lines
336 B
YAML
#
|
|
# Auth Ingress
|
|
#
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: traefik-forward-auth
|
|
labels:
|
|
app: traefik
|
|
spec:
|
|
entryPoints:
|
|
- https
|
|
routes:
|
|
- match: Host(`auth.example.com`)
|
|
kind: Rule
|
|
services:
|
|
- name: traefik-forward-auth
|
|
port: 4181
|
|
tls:
|
|
certresolver: default
|