auth_request_set into variable and lua
agentzh
agentzh at gmail.com
Thu Dec 6 04:01:35 UTC 2012
Hello!
On Wed, Dec 5, 2012 at 7:33 PM, djczaski wrote:
>
> No. Its basically:
>
> local res = ngx.location.capture("/auth")
> if res.status == 200 then
> ngx.var.test = res.headers["X-Boo"]
> else
> ngx.exit(res.status)
> end
>
It won't help much in terms of performance. I thought you were using
Lua to implement an efficient nonblocking (if network I/O is involved)
authorizer and speeding it up with LuaJIT 2.0 :)
Best regards,
-agentzh
More information about the nginx
mailing list