July 27, 2017 02:34AM
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
Subject Author Posted

Secure Link Md5 Implementation

anish10dec July 26, 2017 12:12PM

Re: Secure Link Md5 Implementation

c0nw0nk July 26, 2017 02:06PM

Re: Secure Link Md5 Implementation

anish10dec July 27, 2017 02:34AM

Re: Secure Link Md5 Implementation

c0nw0nk July 27, 2017 05:39AM

Re: Secure Link Md5 Implementation

anish10dec July 27, 2017 07:50AM

Re: Secure Link Md5 Implementation

anish10dec September 13, 2017 08:05AM

Re: Secure Link Md5 Implementation

Francis Daly September 13, 2017 05:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready