Open sscotti opened 3 months ago
I upgraded my NGINX version to a later version, and now I get a similar but different error:
2024/06/15 02:03:59 [emerg] 118#118: module "/etc/nginx/modules/ngx_http_auth_jwt_module.so" version 1025005 instead of 1026001 in /etc/nginx/nginx.conf:7
If you need a little more information about that, the container I am trying to build is a combined:
FROM php:8.2.6-fpm-bullseye, with NGINX installed from the nginx.org repo. What happened is I have a newer version of NGINX that is not compatible with your module now ?
# nginx -v nginx version: nginx/1.26.1
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename:
Can I just build the appropriate .so from your repo instead of having it incorporated into my Docker Build ?
I have an old Docker Build that was working 1 year ago, and I don't think I've changed anything in the configuration since then. I recently tried to rebuild my package and I am getting the error noted in the subject line:
The piece of code from the Docker file is below. I'll need to look through it more carefully, but any suggestions are appreciated.
`#__ RUN apt-get update && apt-get install -y libjwt-dev libjwt0 libjansson-dev libjansson4 libpcre2-dev zlib1g-dev libpcre3-dev RUN mkdir -p /root/build/ngx-http-auth-jwt-module ENV NGINX_VERSION 1.24.0 WORKDIR /root/build/ngx-http-auth-jwt-module ADD ngx-http-auth-jwt-module-master/config ./ ADD ngx-http-auth-jwt-module-master/src/.h ngx-http-auth-jwt-module-master/src/.c ./src/ WORKDIR /root/build RUN mkdir nginx RUN curl -O http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz RUN tar -xzf nginx-${NGINX_VERSION}.tar.gz --strip-components 1 -C nginx WORKDIR /root/build/nginx RUN ./configure --with-compat --add-dynamic-module=../ngx-http-auth-jwt-module --with-cc-opt=-DNGX_LINKED_LIST_COOKIES=1 RUN make modules
__`