redirectionio/libnginx-mod-redirectionio

Support in kubernetes inginx ingress

jstomphorst opened this issue · 2 comments

Hi

I am trying to build the nginx module for the newest version of nginx 1.21.3 on debian 10.
I want to have it working on the https://github.com/kubernetes/ingress-nginx
But I am getting an error :
2021/12/21 13:07:17 [emerg] 32#32: module "/etc/nginx/modules/ngx_http_redirectionio_module.so" is not binary compatible in /etc/nginx/nginx.conf:4

I am building on a docker
docker run -ti --rm -v ~/git-repos/redirector:/data debian:10 bash

With the following script.

cd /
apt update
apt install git autoconf -y 

apt install    -y

apt install gcc build-essential curl wget pkg-config libpcre3 libpcre3-dev zlib1g-dev -y 
curl https://sh.rustup.rs -sSf | sh
. "$HOME/.cargo/env"


git clone https://github.com/redirectionio/libredirectionio.git
cd libredirectionio
autoreconf -i
./configure
make
make install


cd ..
git clone https://github.com/redirectionio/libnginx-mod-redirectionio.git
cd libnginx-mod-redirectionio
autoreconf -i
./configure --with-nginx-version=1.21.3
make
make install

I hope you can help. If the setup works. I will send you my working complete setup.

Wkr Jan

Hey, where does the nginx binary comes from ? (compiled ? from a specific repository ?)

Nginx source may need some patches to have a binary compatible module, you can try to configure with --enable-debian-header to compile nginx with the debian header patch.

I am using the docker.io/nginx/nginx-ingress:2.0.3 docker.
But great pointer!