<div dir="ltr">Hi there,<div><br></div><div>As far as I know, you need to modify your m3u8 files to include the <i>hash</i> and <i>expire</i> on every .ts segment. I used to stream HLS using the secure link module and I remember needing to rewrite the files on-the-fly to make them include those.</div><div><br></div><div>Nginx will not automatically generate a m3u8 file with all the hashes for you. Unless things changed in the last few years and I'm outdated now, haha.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 31, 2022 at 6:43 PM LewisMM <<a href="mailto:nginx-forum@forum.nginx.org">nginx-forum@forum.nginx.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I make a request with the .m3u8 file with the MD5 Hash and expiration. It<br>
receives a 200 code. Then the m3u8 playlist file tries to load the first<br>
segment in the playlist, however, I receive 403 "Not Authorised" error.<br>
Nginx isn't passing the MD5 hash and expiration to the segment file.<br>
<br>
Like so:<br>
<br>
<a href="http://0.0.0.0:80/video/hls/bunny.m3u8?md5=cAsEEb6J96haWy3CMOSgDg&expires=1672531140" rel="noreferrer" target="_blank">http://0.0.0.0:80/video/hls/bunny.m3u8?md5=cAsEEb6J96haWy3CMOSgDg&expires=1672531140</a><br>
<br>
200. Then tries to load segment (which is correct):<br>
<br>
<a href="http://0.0.0.0/video/hls/bunny.ts" rel="noreferrer" target="_blank">http://0.0.0.0/video/hls/bunny.ts</a><br>
<br>
403, forbidden.<br>
<br>
It's not passing the hash. It should be 200.<br>
<br>
I hope you understand my problem.<br>
<br>
Thanks.<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,295058,295065#msg-295065" rel="noreferrer" target="_blank">https://forum.nginx.org/read.php?2,295058,295065#msg-295065</a><br>
<br>
_______________________________________________<br>
nginx mailing list -- <a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
To unsubscribe send an email to <a href="mailto:nginx-leave@nginx.org" target="_blank">nginx-leave@nginx.org</a><br>
<br>
</blockquote></div>