nginx-vod-module
nginx-vod-module copied to clipboard
vod_drm_request_uri as argument
Hi,
I try to use vod_drm_request_uri for DASH: common encryption with a dynamic argument uri to switch pssh. http://localhost:3030/dash/,video/sample.mp4.urlset/manifest.mpd?key=test.json
... vod_drm_upstream_location /mdrm; vod_drm_request_uri $arg_key;
location /mdrm { proxy_pass http://localhost:8000/; } } server { listen 8000; server_name localhost; root /opt/static/videos/cpix; }
the initial request works http://localhost/mdrm/test.json > http://localhost:8000/test.json 127.0.0.1 - [03/May/2021:12:46:56 +0000] "GET /test.json HTTP/1.0" 200
But after for each chunk, the request failed. It sounds like $arg_key is not kept for the next requests.
2021/05/03 12:46:56 [error] 9#9: *5 directory index of "/opt/static/videos/cpix/" is forbidden, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.0", host: "localhost:8000"
How can I cache $arg_key during the stream or avoid multi call to vod_drm_request_uri while streaming is established ? Thanks