Skip to content

Commit b75248c

Browse files
authoredFeb 5, 2025··
feat(compat) add dev support for nginx 1.27.1 (#200)
1 parent 085f329 commit b75248c

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed
 

‎.github/workflows/tests.yml

+40
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,46 @@ jobs:
8282
lua_nginx_module: "v0.10.26"
8383
lua_resty_core: "v0.1.28"
8484
nginx_cc_opts: "-Wno-error"
85+
- nginx: "1.27.1"
86+
openssl: "1.1.1w"
87+
extras: "valgrind perf"
88+
lua_nginx_module: "v0.10.27"
89+
lua_resty_core: "v0.1.30"
90+
- nginx: "1.27.1"
91+
openssl: "3.0.15"
92+
openssl_fips: "3.0.9"
93+
extras: "valgrind perf lua-kong-nginx-module"
94+
lua_nginx_module: "v0.10.27"
95+
lua_resty_core: "v0.1.30"
96+
nginx_cc_opts: "-Wno-error"
97+
- nginx: "1.27.1"
98+
openssl: "3.1.7"
99+
openssl_fips: "3.0.9"
100+
extras: "valgrind perf lua-kong-nginx-module"
101+
lua_nginx_module: "v0.10.27"
102+
lua_resty_core: "v0.1.30"
103+
nginx_cc_opts: "-Wno-error"
104+
- nginx: "1.27.1"
105+
openssl: "3.2.3"
106+
openssl_fips: "3.0.9"
107+
extras: "valgrind perf lua-kong-nginx-module"
108+
lua_nginx_module: "v0.10.27"
109+
lua_resty_core: "v0.1.30"
110+
nginx_cc_opts: "-Wno-error"
111+
- nginx: "1.27.1"
112+
openssl: "3.3.2"
113+
openssl_fips: "3.0.9"
114+
extras: "valgrind perf lua-kong-nginx-module"
115+
lua_nginx_module: "v0.10.27"
116+
lua_resty_core: "v0.1.30"
117+
nginx_cc_opts: "-Wno-error"
118+
- nginx: "1.27.1"
119+
openssl: "3.4.0"
120+
openssl_fips: "3.0.9"
121+
extras: "valgrind perf lua-kong-nginx-module"
122+
lua_nginx_module: "v0.10.27"
123+
lua_resty_core: "v0.1.30"
124+
nginx_cc_opts: "-Wno-error"
85125

86126

87127
env:

‎lib/resty/openssl/auxiliary/nginx.lua

+4-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ else
4444
local ngx_has_http_v3 = ngx_configure and ngx_configure:find("--with-http_v3_module", 1, true)
4545
-- https://github.com/nginx/nginx/blob/master/src/core/ngx_connection.h
4646
if ngx_version == 1017008 or ngx_version == 1019003 or ngx_version == 1019009
47-
or ngx_version == 1021004 or (not ngx_has_http_v3 and ngx_version == 1025003) then
47+
or ngx_version == 1021004
48+
or (not ngx_has_http_v3 and (ngx_version == 1025003 or ngx_version == 1027001)) then
4849
-- 1.17.8, 1.19.3, 1.19.9, 1.21.4, 1.25.3
4950
ffi.cdef [[
5051
typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t;
@@ -82,7 +83,7 @@ else
8283
// trimmed
8384
} ngx_connection_s;
8485
]]
85-
elseif ngx_has_http_v3 and ngx_version == 1025003 then
86+
elseif ngx_has_http_v3 and (ngx_version == 1025003 or ngx_version == 1027001) then
8687
-- 1.25.3
8788
ffi.cdef [[
8889
typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t;
@@ -255,7 +256,7 @@ else
255256
ngx.config.ngx_lua_version and
256257
ngx.config.ngx_lua_version
257258

258-
if ngx_lua_version >= 10019 and ngx_lua_version <= 10026 then
259+
if ngx_lua_version >= 10019 and ngx_lua_version <= 10027 then
259260
-- https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_socket_tcp.h
260261
ffi.cdef[[
261262
typedef struct {

0 commit comments

Comments
 (0)
Please sign in to comment.