stream-lua-nginx-module icon indicating copy to clipboard operation
stream-lua-nginx-module copied to clipboard

Would love `access_by_lua_block`

Open nikhilro opened this issue 1 year ago • 3 comments

Hey there,

I'm looking to build a way to dynamically assign IP to requests as they come in. Been able to achieve that with http since it has both access_by_lua_block and balancer_by_lua_block but former missing here.

I want to switch to stream since proxying on L4 would be more efficient.

Thanks for considering!

Nikhil

nikhilro avatar Feb 11 '24 06:02 nikhilro

Hi @nikhilro stream module supports access_by_lua_block & balancer_by_lua_block. Which version of openresty did you use?

zhuizhuhaomeng avatar Feb 13 '24 12:02 zhuizhuhaomeng

Oh, it does?

Version info:

~$ openresty -v
nginx version: openresty/1.25.3.1

After I got the error, I noticed TODO in README mentioned it doesn't either and created this issue.

nikhilro avatar Feb 15 '24 05:02 nikhilro

You can find the test cases under github.com/openresty/stream-lua-nginx-module/t

zhuizhuhaomeng avatar Feb 17 '24 01:02 zhuizhuhaomeng