I planned to use this package, so I started with the example. I was able to build the successfully but when run the image, the container failed to start with error in logs nginx: [emerg] module "/usr/lib/nginx/modules/ngx_http_auth_jwt_module.so" version 1026002 instead of 1026003 in /etc/nginx/modules/auth_jwt.conf:1.
I also tried a new Docker file to use this from alpine package but same error-
FROM ghcr.io/kjdev/nginx-keyval/nginx AS keyval
FROM alpine:3.21
RUN apk --no-cache upgrade \
&& apk --no-cache add \
hiredis \
jansson \
nginx \
nginx-mod-http-auth-jwt \
nginx-mod-http-js
RUN sed \
-e 's/^user /#user /' \
-e 's@^error_log .*$@error_log /dev/stderr warn;@' \
-e 's@access_log .*;$@access_log /dev/stdout main;@' \
-i /etc/nginx/nginx.conf \
&& rm -f /etc/nginx/http.d/default.conf \
&& mkdir -p /etc/nginx/conf.d \
&& mkdir -p /var/cache/nginx \
&& chown -R nginx:nginx /etc/nginx/conf.d /etc/nginx/http.d /var/cache/nginx
COPY --from=keyval /usr/lib/nginx/modules/ngx_http_keyval_module.so /usr/lib/nginx/modules/
COPY --from=keyval /etc/nginx/modules/keyval.conf /etc/nginx/modules/
USER nginx
CMD ["nginx", "-g", "daemon off;"]
COPY --chown=nginx:nginx frontend.conf /etc/nginx/http.d/
COPY --chown=nginx:nginx openid_connect.server_conf /etc/nginx/conf.d/
COPY --chown=nginx:nginx openid_connect_configuration.conf /etc/nginx/http.d/
COPY --chown=nginx:nginx openid_connect.js /etc/nginx/conf.d/
ARG CLIENT_ID
ARG CLIENT_SECRET
ARG REDIRECT_URI=/_codexch
ARG SERVER_PORT=8010
RUN sed \
-e "s@/_codexch@${REDIRECT_URI}@g" \
-i /etc/nginx/conf.d/openid_connect.server_conf \
&& sed \
-e "s/CLIENT_ID/${CLIENT_ID}/" \
-e "s/CLIENT_SECRET/${CLIENT_SECRET}/" \
-i /etc/nginx/http.d/openid_connect_configuration.conf \
&& sed \
-e "s/listen 8010/listen ${SERVER_PORT}/" \
-i /etc/nginx/http.d/frontend.conf
I am using Docker Desktop for Windows 10. Please let me know a possible fix or more info.