mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix phantom token middleware
This commit is contained in:
parent
4cf5adda9a
commit
61151478e4
@ -84,6 +84,10 @@ services:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.api.rule=PathPrefix(`/api/`)"
|
||||
- "traefik.http.routers.api.middlewares=phantom-token"
|
||||
- "traefik.http.middlewares.phantom-token.forwardauth.address=http://auth:4568/auth/jwt"
|
||||
- "traefik.http.middlewares.phantom-token.forwardauth.authResponseHeaders=Authorization"
|
||||
- "traefik.http.middlewares.phantom-token.forwardauth.authRequestHeaders=Authorization,X-Api-Key"
|
||||
|
||||
# scanner:
|
||||
# build: ./scanner
|
||||
@ -157,12 +161,9 @@ services:
|
||||
- "--providers.docker.exposedbydefault=false"
|
||||
- "--entryPoints.web.address=:8901"
|
||||
- "--accesslog=true"
|
||||
- "--log.level=DEBUG"
|
||||
ports:
|
||||
- "8901:8901"
|
||||
labels:
|
||||
- "traefik.http.middlewares.phantom-token.forwardauth.address=https://auth/auth"
|
||||
- "traefik.http.middlewares.phantom-token.forwardauth.authResponseHeaders=Authorization"
|
||||
- "traefik.http.middlewares.phantom-token.forwardauth.authRequestHeaders=Authroization,X-Api-Key"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user