Expose transcoder to traefik

This commit is contained in:
Zoe Roux 2025-07-15 00:24:19 +02:00
parent c90d0e7ffc
commit 8caff21114

View File

@ -16,6 +16,13 @@ x-transcoder: &transcoder-base
- ${LIBRARY_ROOT}:/video:ro
- ${CACHE_ROOT}:/cache
- transcoder_metadata:/metadata
labels:
- "traefik.enable=true"
- "traefik.http.routers.transcoder.rule=PathPrefix(`/video`)"
- "traefik.http.routers.transcoder.middlewares=phantom-token"
- "traefik.http.middlewares.phantom-token.forwardauth.address=http://auth:4568/auth/jwt"
- "traefik.http.middlewares.phantom-token.forwardauth.authRequestHeaders=Authorization,X-Api-Key"
- "traefik.http.middlewares.phantom-token.forwardauth.authResponseHeaders=Authorization"
develop:
watch:
- action: sync+restart