Welcome! Log In Create A New Profile

Advanced

Using secure_link/secure_link_md5

Posted by tmistretta 
Using secure_link/secure_link_md5
August 16, 2011 09:44PM
I started using secure_link/secure_link_md5 the other day. Great feature! Only thing is though, the example given just uses a hard-coded secret:

location /p/ {
secure_link $arg_st;
secure_link_md5 segredo$arg_st
...

Of course, the true way you'd want this to work is to do some kind of external db lookup (i.e., mysql or whatever). I am wondering, is there a simple way to call out from a conf file to mysql or another python script to return and set a variable (the secret) that then can be used in the secure_link_md5 directive? Any pointers would be appreciated.

Thanks!

Tom
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 208
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