How to add/build a custom Nginx Module (in)to an OpenResty Bundle

648 views
Skip to first unread message

Corne Aussems

unread,
Jul 11, 2018, 11:00:47 AM7/11/18
to openresty-en
Hi all, 

I am searching through this Group and other resources but can't easily find information leading me to the direction of a possible solution.

I am new to OpenResty and I like lua a lot but still i might opt for a custom nginx module to do one of the tricks i need.

In this specific case I am in need of Sticky Sessions. 

There is a lua modul for it 
https://github.com/canhnt/lua-sticky-session

but now i also found a nginx module 
https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/src/master/

So my challenge now is how to build a new Nginx and after that build OpenResty on top of that ?
Or is there some other way to achieve the same goal

Regards,
Corné

Gene Unigovski

unread,
Jul 11, 2018, 12:13:23 PM7/11/18
to openresty-en
Hi,

You can take a look at https://github.com/Unigoge/openresty-bundle - it has Nginx, Openresty and even nginx-sticky-module-ng - just need to run openresty-install.sh (as a root or with sudo)...

Thanks,
Gene

Corne Aussems

unread,
Jul 14, 2018, 3:32:48 AM7/14/18
to openre...@googlegroups.com
Hi Gene,

Thanks for the quick reply. 
I am definitely going to try this out this weekend.
Was struggling with either https://github.com/openresty/lua-resty-balancer/issues/11 and https://github.com/canhnt/lua-sticky-session
But both do not seem to support health checks not even at start nor a fallback mechanisme.
Have my hopes set up  now for nginx-sticky-module-ng.

C.heers
Corné





--
You received this message because you are subscribed to a topic in the Google Groups "openresty-en" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openresty-en/upcHaESnvLI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openresty-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages