Hi Ruslan (not sure),
This works great.. It will do for my use case. Thanks a lot.
Regards,
Hemendra
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,271448,271675#msg-271675
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/ma
On Sat, Dec 10, 2016 at 9:08 PM, hemendra26
wrote:
> I was using nginx x-accel-redirect as an authentication frontend for an
> external db resource.
>
> In my python code I would do the following:
>
> /getresource/
>
> def view(self, req, resp):
> name = get_dbname(req.user.id)
> resp.
hemendra26 Wrote:
---
> I was using nginx x-accel-redirect as an authentication frontend for
> an external db resource.
>
> In my python code I would do the following:
>
> /getresource/
>
> def view(self, req, resp):
> name = get_dbname(r
I was using nginx x-accel-redirect as an authentication frontend for an
external db resource.
In my python code I would do the following:
/getresource/
def view(self, req, resp):
name = get_dbname(req.user.id)
resp.set_header('X-Accel-Redirect', '/resource/%s/' %name )
This would for