Create auth header middleware
This commit is contained in:
parent
8f4bcf2040
commit
5b1770121d
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -7,6 +7,7 @@ resources:
|
|||
- namespace.yaml
|
||||
- ingress.yaml
|
||||
- basic-auth-middleware.yaml
|
||||
- forward-auth-middleware.yaml
|
||||
|
||||
generators:
|
||||
- ./secret-generator.yaml
|
||||
|
|
Loading…
Reference in New Issue