From 8caff21114f9d6ab7f2910caea0a91237651aebe Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 15 Jul 2025 00:24:19 +0200 Subject: [PATCH] Expose transcoder to traefik --- docker-compose.dev.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index b587610f..1450533e 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -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