For validating all the m3u8 , below is the configuration 

location  ~.*.m3u8 {

secure_link $arg_token,$arg_expires;

secure_link_md5 "appsecret$uri$arg_expires";

if ($secure_link = "") {return 403;}
if ($secure_link = "0"){return 410;}

proxy_pass http://appserver:80;

}

What I need is the way to temporarily allow users who are not coming with
token as well.
 As when we release the update of the app, it will not get updated to
everyone at once. So temporarily want to allow users coming without token as
well.
It should be accessible to both below URL
 
http://testapp.com/video/master.m3u8?token=xyz&exp=123

http://testapp.com/video/master.m3u8

Regards,
Anish

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,275668,275672#msg-275672

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to