From 18d4924c5ae77c6166e07738678b9064ad441d31 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 5 Apr 2026 18:07:46 +0100 Subject: [PATCH] correct stream location --- docker_assets/nginx.conf | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docker_assets/nginx.conf b/docker_assets/nginx.conf index 80f0af41..1890b9a5 100644 --- a/docker_assets/nginx.conf +++ b/docker_assets/nginx.conf @@ -26,12 +26,17 @@ server { } location /youtube/ { - # Use signed-URL auth if ?sig= is present, otherwise session auth - set $auth_endpoint /api/ping/; - if ($arg_sig) { - set $auth_endpoint /api/stream-auth/; + auth_request /api/ping/; + alias /youtube/; + types { + video/mp4 mp4; } - auth_request $auth_endpoint; + } + + # Signed-URL streaming endpoint for native player clients (VLC etc.) + # Requires ?sig=&expires= query args validated by /api/stream-auth/. + location /stream/ { + auth_request /api/stream-auth/; alias /youtube/; types { video/mp4 mp4;