Secure Link Md5 Implementation
anish10dec
nginx-forum at forum.nginx.org
Thu Jul 27 06:34:09 UTC 2017
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
More information about the nginx
mailing list