Replace traefik dashboard auth with authentik auth
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -5,5 +5,4 @@ data
|
||||
db
|
||||
|
||||
# Files
|
||||
.env
|
||||
users
|
||||
.env
|
||||
@@ -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