Difference between nginx-mod-http-lua and openresty-mod-http-lua?
Both (1) nginx-mod-http-lua
and (2) openresty-mod-http-lua
provide /usr/lib/nginx/modules/ngx_http_lua_module.so
(the Nginx Lua module). Is this intentional? Is there a difference between these packages?
Personally, I am using lua-resty-openidc
, which depends on lua-resty-jwt
, which depends on lua-resty-hmac
, which depends on nginx-mod-http-lua
, so this means I am getting (1) rather than (2).
However, it seems that there are some useful things in openresty
, which I would also like to use. But if I try to pull in both (1) and (2), I get this error from apk:
ERROR: openresty-mod-http-lua-1.21.4.1-r0: trying to overwrite usr/lib/nginx/modules/ngx_http_lua_module.so owned by nginx-mod-http-lua-1.20.2-r2.
In general, may I ask what the intention of the lua-resty-* packages and the openresty-* packages is? Are they intended to be used in combination?
I see that openresty
packages a different version of Nginx from the nginx
package. If one wants to use all the OpenResty Lua stuff, is it recommended to use the version of Nginx packaged in openresty
or that packaged in nginx
?