lua-nginx-module
lua-nginx-module copied to clipboard
Embed the Power of Lua into NGINX HTTP servers
``` Debian 12 nginx version: openresty/1.27.1.1 built with OpenSSL 3.0.15 3 Sep 2024 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre2/include -I/usr/local/openresty/openssl3/include' --add-module=../ngx_devel_kit-0.3.3 --add-module=../echo-nginx-module-0.63 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.33...
Hi I apologize if this isn't the place for howto questions, but it may also be a feature request. With http2 enabled we cannot use "connection: close" and keepalive_* directives...
I want to invoke a stateful C function in so with lua I want to parse a complex configuration using C, like: foo.c ``` c void* checkAndParse(void *ctx, char *unparsed,...
I am trying to add support for my FastCGI & ExpressJS pages using internal routes like ```nginx location ~ /@ExpressJS(/+)?(([a-zA-Z0-9\_\-]+(/+))+)? { internal; rewrite ^/@ExpressJS/(.*)$ /$1 permanent; root /var/www/htdocs; proxy_pass $scheme://127.0.0.1:$_proxy_port$request_uri;...
Service is integrated with external system which periodically send us wrong service requests. In order to reduce system overload it was written LUA block to check if request id valid...
Hello, static checker svacer found several places where we are not checking req object for NULL, while it provided counter-examples where we are doing so. Problematic files: https://github.com/openresty/lua-nginx-module/blob/5bd471a4bce6c02dd68b1ca72fbabb09fb2041d8/src/ngx_http_lua_socket_tcp.c#L5077-L5083 https://github.com/openresty/lua-nginx-module/blob/5bd471a4bce6c02dd68b1ca72fbabb09fb2041d8/src/ngx_http_lua_semaphore.c#L486-L488 https://github.com/openresty/lua-nginx-module/blob/5bd471a4bce6c02dd68b1ca72fbabb09fb2041d8/src/ngx_http_lua_semaphore.c#L530-L532...
https://github.com/openresty/lua-nginx-module/?tab=readme-ov-file#ngxeof mentions ngx.say and ngx.print, however ngx.eof will also trigger headers to be sent
Hi, I have following situation. I have a nginx plus ingress controller running inside Kubernetes. Nginx exposes a service with a location: ``` server { listen 80; listen [::]:80; server_name...
Compile lua-nginx-modulev 0.10.27 for nginx 1.21.1, lua-resty-core-0.1.29 use ``` openssl-libs-1.0.2k-26.el7_9.x86_64 openssl-devel-1.0.2k-26.el7_9.x86_64 openssl-1.0.2k-26.el7_9.x86_64 libluajit-devel-2.1.0v20210510-2.el7.lnt.x86_64 ``` Centos 7 and I have next problem ``` lua-nginx-module/src/ngx_http_lua_ssl_certby.c: In function 'ngx_http_lua_ffi_ssl_client_random': lua-nginx-module/src/ngx_http_lua_ssl_certby.c:1651:5: error: implicit declaration...
I want to simulate an HTTP 101 status code as follows. ``` # nginx.conf worker_processes 1; error_log logs/error.log debug; events { worker_connections 1024; } http { lua_code_cache on; lua_package_path 'assets/?.lua;;';...