Welcome! Log In Create A New Profile

Advanced

Re: auth_request_set into variable and lua

agentzh
December 05, 2012 11:02PM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

auth_request_set into variable and lua

djczaski December 04, 2012 05:18PM

Re: auth_request_set into variable and lua

agentzh December 04, 2012 09:20PM

Re: auth_request_set into variable and lua

djczaski December 04, 2012 10:38PM

Re: auth_request_set into variable and lua

agentzh December 05, 2012 10:04PM

Re: auth_request_set into variable and lua

djczaski December 05, 2012 10:36PM

Re: auth_request_set into variable and lua

agentzh December 05, 2012 11:02PM

Re: auth_request_set into variable and lua

Maxim Dounin December 05, 2012 06:22AM

Re: auth_request_set into variable and lua

djczaski December 05, 2012 09:27AM

Re: auth_request_set into variable and lua

djczaski December 05, 2012 09:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 128
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready