Create auth header middleware

This commit is contained in:
Mathis 2023-12-12 21:00:30 +00:00
parent 8f4bcf2040
commit 5b1770121d
3 changed files with 12 additions and 2 deletions

View File

@ -1,9 +1,9 @@
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: authelia
name: authelia-basic
namespace: auth
spec:
forwardAuth:
address: 'http://authelia.auth.svc.cluster.local/api/verify?rd=https://auth.namesny.com'
address: 'http://authelia.auth.svc.cluster.local/api/verify?auth=basic&rd=https://auth.namesny.com'
trustForwardHeader: true

View File

@ -0,0 +1,9 @@
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: authelia
namespace: auth
spec:
forwardAuth:
address: 'http://authelia.auth.svc.cluster.local/api/verify?rd=https://auth.namesny.com'
trustForwardHeader: true

View File

@ -7,6 +7,7 @@ resources:
- namespace.yaml
- ingress.yaml
- basic-auth-middleware.yaml
- forward-auth-middleware.yaml
generators:
- ./secret-generator.yaml