lua-resty-http: new package
Hello,
Well, I'm also very far from nginx expert, but yes, it lua-nginx-module, which we need in our special embedded linux. So, if you don't explicitly have nginx modules in buildroot, how should we deal with it? --
Semyon
-----------
Semyon Kolganov
???????, 05 ??? 2017?., 00:02 +03:00 ?? Peter Korsgaard peter at korsgaard.com:
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
?> commit: https://git.buildroot.net/buildroot/commit/?id=e88995f065986dc56ce5a7c222f7a9f6cbff2b94
?> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
?> Signed-off-by: Semyon Kolganov <[email protected]>
?> Signed-off-by: Thomas Petazzoni <[email protected]>
?> ---?>? DEVELOPERS???????????????????????????????? |? 1 + ?>? package/Config.in????????????????????????? |? 1 + ?>? package/lua-resty-http/Config.in?????????? |? 6 ++++++ ?>? package/lua-resty-http/lua-resty-http.hash |? 2 ++ ?>? package/lua-resty-http/lua-resty-http.mk?? | 12 ++++++++++++
Quoted 18 lines
?>? 5 files changed, 22 insertions(+)
?> +++ b/package/lua-resty-http/Config.in
?> @@ -0,0 +1,6 @@
?> +configBR2_PACKAGE_LUA_RESTY_HTTP
?> + bool "lua-resty-http"
?> + help
?> + ? Lua HTTP client cosocket driver for OpenResty /ngx_lua. ?> +
?> + ? http://github.com/pintsized/lua-resty-http
Sorry for the slow response, but this patch apparently never made it to my mailbox? (It is in the archive, so it must have been an issue on my side).
I'm far from an expert in nginx, but isn't this an extension to the lua-nginx-module that we don't (explicitly) have in Buildroot? Is it in any way useful without it?
What is your use case for it?Signature · 1 line
Bye, Peter Korsgaard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170505/ce29f82e/attachment.html>
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"semenak94" == semenak94 <[email protected]> writes:
Hello,
Well, I'm also very far from nginx expert, but yes, it lua-nginx-module, which we need in our special embedded linux. So, if you don't explicitly have nginx modules in buildroot, how should we deal with it?
So how are you using it now?
We currently don't have any explicit handling of the nginx-lua module. You could conceptually do something with the 'nginx additional modules' (BR2_PACKAGE_NGINX_ADD_MODULES) option, but there's no guarantee that nginx builds after luajit.
I guess the proper solution would be to add an explicit nginx-lua module, similar to what we already have for nginx-dav-ext / nginx-naxsi / nginx-upload.
Samuel and Adam, you have added / been active around nginx and modules, any input?
Quoted 13 lines
Quoted 13 lines
?> +config
BR2_PACKAGE_LUA_RESTY_HTTP
?> + bool "lua-resty-http"
?> + help
?> + ? Lua HTTP client cosocket driver for OpenResty /ngx_lua. ?> +
?> + ? http://github.com/pintsized/lua-resty-http
Sorry for the slow response, but this patch apparently never made it to my mailbox? (It is in the archive, so it must have been an issue on my side).
I'm far from an expert in nginx, but isn't this an extension to the lua-nginx-module that we don't (explicitly) have in Buildroot? Is it in any way useful without it?
What is your use case for it?
Signature · 1 line
Bye, Peter Korsgaard
Peter,
Quoted 10 lines · Peter Korsgaard
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"semenak94" == semenak94 <[email protected]> writes:
Hello,
Well, I'm also very far from nginx expert, but yes, it lua-nginx-module, which we need in our special embedded linux. So, if you don't explicitly have nginx modules in buildroot, how should we deal with it?So how are you using it now?
Quoted 8 lines
We currently don't have any explicit handling of the nginx-lua module. You could conceptually do something with the 'nginx additional modules' (
BR2_PACKAGE_NGINX_ADD_MODULES) option, but there's no guarantee that nginx builds after luajit.I guess the proper solution would be to add an explicit nginx-lua module, similar to what we already have for nginx-dav-ext / nginx-naxsi / nginx-upload.
FWIW - that's what we did in our project - an "ngx_lua" package that simply uses generic-package to download and untar the source, and an addition to nginx.mk like this:
ifeq ($(BR2_PACKAGE_NGX_LUA),y) NGINX_DEPENDENCIES += ngx_lua luainterpreter NGINX_CONF_OPTS += --add-module=$(NGX_LUA_DIR) ifeq ($(BR2_PACKAGE_LUAJIT),y) NGINX_CONF_ENV += LUAJIT_LIB=$(STAGING_DIR)/usr/lib LUAJIT_INC=$(STAGING_DIR)/usr/include
endif
endif
But then we ended up not actually using ngx_lua at all.
Danomi -
Quoted 23 lines
Samuel and Adam, you have added / been active around nginx and modules, any input?
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
(quoted diff) +5
-0+config BR2_PACKAGE_LUA_RESTY_HTTP + bool "lua-resty-http" + help + Lua HTTP client cosocket driver for OpenResty / ngx_lua. +Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Sorry for the slow response, but this patch apparently never made it to my mailbox? (It is in the archive, so it must have been an issue on my side).
I'm far from an expert in nginx, but isn't this an extension to the lua-nginx-module that we don't (explicitly) have in Buildroot? Is it in any way useful without it?
What is your use case for it?--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Quoted 11 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Danomi" == Danomi Manchego <[email protected]> writes:
We currently don't have any explicit handling of the nginx-lua module. You could conceptually do something with the 'nginx additional modules' (
BR2_PACKAGE_NGINX_ADD_MODULES) option, but there's no guarantee that nginx builds after luajit.I guess the proper solution would be to add an explicit nginx-lua module, similar to what we already have for nginx-dav-ext / nginx-naxsi / nginx-upload.
Quoted 6 lines
FWIW - that's what we did in our project - an "
ngx_lua" package that simply uses generic-package to download and untar the source, and an addition to nginx.mk like this:ifeq ($(BR2_PACKAGE_NGX_LUA),y)
NGINX_DEPENDENCIES+=ngx_lualuainterpreter
ngx_lua (or nginx-lua to follow the naming convention) should probably be responsible for pulling in luainterpreter, but OK.
Quoted 8 lines
NGINX_CONF_OPTS+= --add-module=$(NGX_LUA_DIR) ifeq ($(BR2_PACKAGE_LUAJIT),y)NGINX_CONF_ENV+= LUAJIT_LIB=$(STAGING_DIR)/usr/lib LUAJIT_INC=$(STAGING_DIR)/usr/include
endif
endifBut then we ended up not actually using
ngx_luaat all.
Would you be interested in contributing (and maintaining) such a package in BR?
Signature · 1 line
Bye, Peter Korsgaard
Peter,
Quoted 15 lines · Peter Korsgaard
Quoted 14 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Danomi" == Danomi Manchego <[email protected]> writes:
We currently don't have any explicit handling of the nginx-lua module. You could conceptually do something with the 'nginx additional modules' (
BR2_PACKAGE_NGINX_ADD_MODULES) option, but there's no guarantee that nginx builds after luajit.I guess the proper solution would be to add an explicit nginx-lua module, similar to what we already have for nginx-dav-ext / nginx-naxsi / nginx-upload.
FWIW - that's what we did in our project - an "
ngx_lua" package that simply uses generic-package to download and untar the source, and an addition to nginx.mk like this:
Quoted 5 lines
Quoted 2 lines
ifeq ($(BR2_PACKAGE_NGX_LUA),y)
NGINX_DEPENDENCIES+=ngx_lualuainterpreter
ngx_lua(or nginx-lua to follow the naming convention) should probably be responsible for pulling in luainterpreter, but OK.
Noted and corrected, thank you.
Quoted 11 lines
Quoted 8 lines
NGINX_CONF_OPTS+= --add-module=$(NGX_LUA_DIR) ifeq ($(BR2_PACKAGE_LUAJIT),y)NGINX_CONF_ENV+= LUAJIT_LIB=$(STAGING_DIR)/usr/lib LUAJIT_INC=$(STAGING_DIR)/usr/include
endif
endifBut then we ended up not actually using
ngx_luaat all.Would you be interested in contributing (and maintaining) such a package in BR?
I've not much interested in maintaining it since I consider it a failed experiment on our part. We don't use it now at all. But I can do a one-time contribution. Is that okay?
Danomi -
Quoted 2 lines
--
Bye, Peter Korsgaard