Create auth header middleware
This commit is contained in:
parent
8f4bcf2040
commit
5b1770121d
|
@ -1,9 +1,9 @@
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: Middleware
|
kind: Middleware
|
||||||
metadata:
|
metadata:
|
||||||
name: authelia
|
name: authelia-basic
|
||||||
namespace: auth
|
namespace: auth
|
||||||
spec:
|
spec:
|
||||||
forwardAuth:
|
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
|
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
|
- namespace.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- basic-auth-middleware.yaml
|
- basic-auth-middleware.yaml
|
||||||
|
- forward-auth-middleware.yaml
|
||||||
|
|
||||||
generators:
|
generators:
|
||||||
- ./secret-generator.yaml
|
- ./secret-generator.yaml
|
||||||
|
|
Loading…
Reference in New Issue