Closed Limest0n3 closed 6 months ago
We don't publish module binaries for 1.23.x
because it's not listed on NGINX's download page as a mainline/stable/legacy version.
If you need to use this version of NGINX, you can build the module by running this from the repo root:
NGINX_VERSION=1.23.1 ./scripts.sh rebuild_module rebuild_test_runner test cp_bin
You should see all tests pass and you should have a bin
dir with the module binaries inside. I just tried this and it seems to work fine.
Here is the binary if it's easier for you...
We don't publish module binaries for
1.23.x
because it's not listed on NGINX's download page as a mainline/stable/legacy version.If you need to use this version of NGINX, you can build the module by running this from the repo root:
NGINX_VERSION=1.23.1 ./scripts.sh rebuild_module rebuild_test_runner test cp_bin
You should see all tests pass and you should have a
bin
dir with the module binaries inside. I just tried this and it seems to work fine.
Hi! Thanks for the reply.
I don't need to use 1.23.1 specifically but I would like to use the latest or stable (at this moment) nginx version compiled with ngx-http-auth-jwt module and I would like to compile the nginx statically so I don't have to mess around with dynamic libraries and can just execute the binary.
It all works with versions 1.22.1 and lower.
I tried running the script and the binaries updated but still can't compile statically. Is it possible with newer nginx versions or am I just dumb and didn't get what you meant. :)
As I understand the script compiles a dynamic module aka .so file.
Ok, seems like I got it working. Took a closer look to the Dockerfile that builds the module I noticed this section.
NGINX 1.23.0+ changes cookies to use a linked list, and renames
cookies
tocookie
if [ "${MAJ}" -gt 1 ] || [ "${MAJ}" -eq 1 -a "${MIN}" -ge 23 ]; then BUILD_FLAGS="${BUILD_FLAGS} --with-cc-opt='-DNGX_LINKED_LIST_COOKIES=1'" fi
So when compiling with version 1.23.0 and newer, you have to add -DNGX_LINKED_LIST_COOKIES=1
as additional parameter.
The configure command now looks like this.
./configure --add-module=../ngx-http-auth-jwt-module-2.0.3 --prefix=. --with-cc-opt='-DNGX_LINKED_LIST_COOKIES=1 -static' --with-ld-opt='-static'
So when compiling with version 1.23.0 and newer, you have to add -DNGX_LINKED_LIST_COOKIES=1 as additional parameter.
Yes! Glad you figured it out.
Compiling statically with nginx version 1.23 or greater fails because of missing/renamed headers???
It all works with version 1.22.1 and lower.
Command used for configuring, fail happens in make process. ./configure --add-module=../ngx-http-auth-jwt-module-2.0.3 --prefix=. --with-cc-opt='-static' --with-ld-opt='-static'