mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-22 16:44:24 +00:00
Manually define forward auth middleware
This commit is contained in:
15
apps/prod/authelia/forward-auth-middleware.yaml
Normal file
15
apps/prod/authelia/forward-auth-middleware.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# /apps/prod/authelia/forward-auth-middleware.yaml
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: authelia
|
||||||
|
namespace: auth
|
||||||
|
spec:
|
||||||
|
forwardAuth:
|
||||||
|
address: 'http://authelia.auth.svc.cluster.local/api/authz/forward-auth?authelia_url=https%3A%2F%2Fauth.example.com'
|
||||||
|
trustForwardHeader: true
|
||||||
|
authResponseHeaders:
|
||||||
|
- "Remote-User"
|
||||||
|
- "Remote-Groups"
|
||||||
|
- "Remote-Email"
|
||||||
|
- "Remote-Name"
|
||||||
@@ -5,8 +5,9 @@ namespace: auth
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ../../base/authelia
|
- ../../base/authelia
|
||||||
- release.yaml
|
|
||||||
- users-database.enc.yaml
|
- users-database.enc.yaml
|
||||||
|
- release.yaml
|
||||||
|
- forward-auth-middleware.yaml
|
||||||
|
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: authelia-prod-values
|
- name: authelia-prod-values
|
||||||
|
|||||||
@@ -51,14 +51,6 @@ ingress:
|
|||||||
ingressClassName: "traefik"
|
ingressClassName: "traefik"
|
||||||
traefikCRD:
|
traefikCRD:
|
||||||
enabled: true
|
enabled: true
|
||||||
middlewares:
|
|
||||||
auth:
|
|
||||||
nameOverride: "authelia"
|
|
||||||
authResponseHeaders:
|
|
||||||
- "Remote-User"
|
|
||||||
- "Remote-Groups"
|
|
||||||
- "Remote-Email"
|
|
||||||
- "Remote-Name"
|
|
||||||
matchOverride: Host(`auth.example.com`)
|
matchOverride: Host(`auth.example.com`)
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- "websecure"
|
- "websecure"
|
||||||
Reference in New Issue
Block a user