Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Francis Daly
On Mon, Jun 17, 2019 at 03:17:46PM +, Andrew Andonopoulos wrote: Hi there, > Regarding the map, can you please explain which values the variables $one and > $the_md5 will have? Yes, but: what happens when you try it? On a test system: location /vod/ { return 200 "one is $one; the_md

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Hung Nguyen
module without > using other CDN ? > > Thanks > Andrew > > From: Andrew Andonopoulos > Sent: Monday, June 17, 2019 12:25 PM > To: nginx@nginx.org > Subject: Re: Securing URLs with the Secure Link Module in NGINX > > Hi Hung, > > I presume i need to re-

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Andrew Andonopoulos
directory becomes "everything else up to the last slash", and $the_file is "everything after the last slash". From: nginx on behalf of Francis Daly Sent: Monday, June 17, 2019 3:05 PM To: nginx@nginx.org Subject: Re: Securing URLs with the Sec

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Francis Daly
On Mon, Jun 17, 2019 at 01:34:33PM +, Andrew Andonopoulos wrote: Hi there, > The idea of moving MD5 and Time after the first directory is good. > So with this option i will not have to worry modifying the manifests. Correct. Since the manifests refer to "other files in the same directory",

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Andrew Andonopoulos
Andrew From: nginx on behalf of Francis Daly Sent: Monday, June 17, 2019 11:39 AM To: nginx@nginx.org Subject: Re: Securing URLs with the Secure Link Module in NGINX On Mon, Jun 17, 2019 at 08:17:51AM +, Andrew Andonopoulos wrote: Hi there, > I would lik

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Andrew Andonopoulos
also i don't have Akamai CDN behind nginx. Can i use this module without using other CDN ? Thanks Andrew From: Andrew Andonopoulos Sent: Monday, June 17, 2019 12:25 PM To: nginx@nginx.org Subject: Re: Securing URLs with the Secure Link Module in NGINX Hi

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Andrew Andonopoulos
folder? so i just point it to the folder in tmp? Thanks Andrew From: nginx on behalf of Hung Nguyen Sent: Monday, June 17, 2019 12:01 PM To: nginx@nginx.org Subject: Re: Securing URLs with the Secure Link Module in NGINX Hi, Actually you can use a module

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Hung Nguyen
drew > > > > > > From: nginx on behalf of Francis Daly > > Sent: Monday, June 17, 2019 7:40 AM > To: nginx@nginx.org > Subject: Re: Securing URLs with the Secure Link Module in NGINX > > On Sat, Jun 15, 2019 at 06:08:07PM +, Andrew Andonopoulos

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Francis Daly
On Mon, Jun 17, 2019 at 08:17:51AM +, Andrew Andonopoulos wrote: Hi there, > I would like to add the secure link in each m3u8 and ts file but can't modify > the files on the fly with the free nginx version, i think nginx plus have > this capability ? (receive fmp4 and deliver manifests on t

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Andrew Andonopoulos
40 AM To: nginx@nginx.org Subject: Re: Securing URLs with the Secure Link Module in NGINX On Sat, Jun 15, 2019 at 06:08:07PM +, Andrew Andonopoulos wrote: Hi there, > In my case the player will request the m3u8 URL: > > https:///hls/justin-timberlake-encrypted/pla

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-17 Thread Francis Daly
On Sat, Jun 15, 2019 at 06:08:07PM +, Andrew Andonopoulos wrote: Hi there, > In my case the player will request the m3u8 URL: > > https:///hls/justin-timberlake-encrypted/playlist.m3u8?md5=u808mTXsFSpZt7b8wLvlIw&expires=1560706367 > > The response from the server will be: > > #EXTM3U > #EX

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-15 Thread Andrew Andonopoulos
rew From: nginx on behalf of Francis Daly Sent: Sunday, June 9, 2019 8:15 AM To: nginx@nginx.org Subject: Re: Securing URLs with the Secure Link Module in NGINX On Sat, Jun 08, 2019 at 02:44:22PM +, Andrew Andonopoulos wrote: Hi there, > Thanks for

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-09 Thread Francis Daly
On Sat, Jun 08, 2019 at 02:44:22PM +, Andrew Andonopoulos wrote: Hi there, > Thanks for the clarification, so all requests will be like this: > > http:///hls// > > can i include in the map the domain http://example.com, the folder /hls/ and > ignore all the rest? You can. I'm not sure why

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-08 Thread Andrew Andonopoulos
URLs with the Secure Link Module in NGINX On Fri, Jun 07, 2019 at 09:51:49PM +, Andrew Andonopoulos wrote: Hi there, thanks for the fuller details. I think it makes it clear what is happening. > and this command to generate the md5: > > echo -n 'enigma/hls/justin-timberlake/play

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-07 Thread Francis Daly
On Fri, Jun 07, 2019 at 09:51:49PM +, Andrew Andonopoulos wrote: Hi there, thanks for the fuller details. I think it makes it clear what is happening. > and this command to generate the md5: > > echo -n 'enigma/hls/justin-timberlake/playlist1560033000' | openssl md5 > -binary | openssl ba

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-07 Thread Andrew Andonopoulos
erlake/Justin_Timberlake_640_360_600.m3u8 Request Method: GET Status Code: 403 Forbidden Thanks Andrew From: nginx on behalf of Francis Daly Sent: Friday, June 7, 2019 8:59 PM To: nginx@nginx.org Subject: Re: Securing URLs with the Secure Link Module in NGINX O

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-07 Thread Francis Daly
On Fri, Jun 07, 2019 at 06:47:54PM +, Andrew Andonopoulos wrote: Hi there, > This is the nginx config, do you think that i should use another method? like > auth? It looks to me like you could try using exactly the method in the document you mentioned previously. https://www.nginx.com/blog

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-07 Thread Andrew Andonopoulos
} # redirect server error pages to the static page /50x.html error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/local/www/nginx-dist; } } } Thanks Andrew ________ From: nginx on behalf of

Re: Securing URLs with the Secure Link Module in NGINX

2019-06-06 Thread Patrick
On 2019-06-06 23:00, Andrew Andonopoulos wrote: > However i changed it little bit and i used the following (without map) and i > was able to get 200 for only the URI, so i presume that the secure link with > NGINX is working: Can you post a redacted version of the config file? Secure Link shoul

Securing URLs with the Secure Link Module in NGINX

2019-06-06 Thread Andrew Andonopoulos
Hello, I have a project to build a caching server for HLS with nginx which is using S3 as an origin. I completed this task and everything is working as expected. Now the next task is to use secure link to secure m3u8 and ts files. I used the instructions from this URL but i was getting 403 for