Replace traefik dashboard auth with authentik auth
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,4 +6,3 @@ db
|
|||||||
|
|
||||||
# Files
|
# Files
|
||||||
.env
|
.env
|
||||||
users
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
# /services/traefik/config/dashboard/dashboard.yml
|
|
||||||
|
|
||||||
http:
|
|
||||||
routers:
|
|
||||||
traefik:
|
|
||||||
entryPoints:
|
|
||||||
- https
|
|
||||||
rule: Host(`traefik.eliasfink.de`)
|
|
||||||
middlewares:
|
|
||||||
- traefik-dashboard-auth
|
|
||||||
service: api@internal
|
|
||||||
|
|
||||||
middlewares:
|
|
||||||
traefik-dashboard-auth:
|
|
||||||
digestAuth:
|
|
||||||
usersFile: /etc/traefik/config/dashboard/users
|
|
||||||
30
traefik/config/middlewares/dashboard.yml
Normal file
30
traefik/config/middlewares/dashboard.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# /services/traefik/config/middlewares/dashboard.yml
|
||||||
|
|
||||||
|
http:
|
||||||
|
routers:
|
||||||
|
traefik:
|
||||||
|
entryPoints:
|
||||||
|
- https
|
||||||
|
rule: Host(`traefik.eliasfink.de`)
|
||||||
|
middlewares:
|
||||||
|
- traefik-dashboard-auth
|
||||||
|
service: api@internal
|
||||||
|
|
||||||
|
middlewares:
|
||||||
|
traefik-dashboard-auth:
|
||||||
|
forwardAuth:
|
||||||
|
address: http://authentik_proxy:9000/outpost.goauthentik.io/auth/traefik
|
||||||
|
trustForwardHeader: true
|
||||||
|
authResponseHeaders:
|
||||||
|
- X-authentik-username
|
||||||
|
- X-authentik-groups
|
||||||
|
- X-authentik-entitlements
|
||||||
|
- X-authentik-email
|
||||||
|
- X-authentik-name
|
||||||
|
- X-authentik-uid
|
||||||
|
- X-authentik-jwt
|
||||||
|
- X-authentik-meta-jwks
|
||||||
|
- X-authentik-meta-outpost
|
||||||
|
- X-authentik-meta-provider
|
||||||
|
- X-authentik-meta-app
|
||||||
|
- X-authentik-meta-version
|
||||||
Reference in New Issue
Block a user