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