Secure Link Md5 Implementation

anish10dec nginx-forum at
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
It should be accessible to both below URL


Posted at Nginx Forum:,275668,275672#msg-275672

More information about the nginx mailing list