Re: Cannot get secure link with expires to work

2019-05-07 Thread Francis Daly
On Tue, May 07, 2019 at 03:21:49PM +1000, Duke Dougal wrote: Hi there, > Well you hit the mark thank you well done. Good that you found the fix -- and that your nginx config was correct all along. > The problem was that I needed to wrap the entire curl url in quotes. Interesting -- had you tes

Re: Cannot get secure link with expires to work

2019-05-06 Thread Duke Dougal
Well you hit the mark thank you well done. The problem was that I needed to wrap the entire curl url in quotes. ugh. On Tue, May 7, 2019 at 1:17 AM Francis Daly wrote: > On Wed, May 01, 2019 at 09:14:11AM +1000, Duke Dougal wrote: > > Hi there, > > > Hello I've tried every possible way I can

Re: Cannot get secure link with expires to work

2019-05-06 Thread Francis Daly
On Wed, May 01, 2019 at 09:14:11AM +1000, Duke Dougal wrote: Hi there, > Hello I've tried every possible way I can think of to make secure links > work with expires. When I use your config on my test machine, it works for me. So it looks like what you have is fundamentally correct; there is obv

Re: Cannot get secure link with expires to work

2019-05-02 Thread Patrick
On 2019-05-03 09:33, Duke Dougal wrote: > > The secret, expiry, and uri are the same from md5 generation to the > > cURL request? > > Could you please explain the question further? - I’m not sure how to check > this thanks. Sure. Use shell variables -- e.g. #!/bin/bash secret="w00w00" uri="/html

Re: Cannot get secure link with expires to work

2019-05-02 Thread Duke Dougal
On 1 May 2019, at 10:56 am, Patrick <201904-ng...@jslf.app> wrote: On 2019-05-01 10:06, Duke Dougal wrote: Any further ideas? 1) The URL returns 200 when the secure-link config is disabled? url="http://127.0.0.1/html/index.html"; curl -sI $url 2) The secret, expi

Re: Cannot get secure link with expires to work

2019-04-30 Thread Patrick
On 2019-05-01 10:06, Duke Dougal wrote: > Any further ideas? 1) The URL returns 200 when the secure-link config is disabled? url="http://127.0.0.1/html/index.html"; curl -sI $url 2) The secret, expiry, and uri are the same from md5 generation to the cURL request? Patrick __

Re: Cannot get secure link with expires to work

2019-04-30 Thread Duke Dougal
should be: curl http://127.0.0.1/html/index.html?md5=FsRb_uu5NsagF0hA_Z-OQg&expires=2147483647 i.e. curl "http://127.0.0.1/html/index.html?md5=${md5}&expires=${expiry}"; Patrick Yes you’re correct there was a missing ampersand in the curl query but it still doesn’t work. Any further ideas? t

Re: Cannot get secure link with expires to work

2019-04-30 Thread Patrick
On 2019-05-01 09:14, Duke Dougal wrote: >ubuntu@ip-172-31-34-191:/var/www$ curl > http://127.0.0.1/html/index.html?md5=FsRb_uu5NsagF0hA_Z-OQgexpires=2147483647 should be: curl http://127.0.0.1/html/index.html?md5=FsRb_uu5NsagF0hA_Z-OQg&expires=2147483647 i.e. curl "http://127.0.0.1/html/ind

Cannot get secure link with expires to work

2019-04-30 Thread Duke Dougal
Hello I've tried every possible way I can think of to make secure links work with expires. I've tried different versions of nginx, I've tried on Ubuntu, tried on Centos, tried generating the hash using openssl, tried using Python. I've followed every tutorial I can find. So I must be doing somet