From c00733a083001372378ef226c45be71011864fad Mon Sep 17 00:00:00 2001 From: Anurag Rajawat Date: Wed, 20 Nov 2024 11:03:26 +0530 Subject: [PATCH] NGINX: Add NJS Signed-off-by: Anurag Rajawat --- images/nginx/rootfs/build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/images/nginx/rootfs/build.sh b/images/nginx/rootfs/build.sh index 3baf775fca..3d08f7d397 100755 --- a/images/nginx/rootfs/build.sh +++ b/images/nginx/rootfs/build.sh @@ -106,6 +106,9 @@ export OPENTELEMETRY_CPP_VERSION="v1.11.0" # Check on https://github.com/open-telemetry/opentelemetry-proto export OPENTELEMETRY_PROTO_VERSION="v1.1.0" +# http://hg.nginx.org/njs +export NGINX_NJS_VERSION="0.8.4" + export BUILD_PATH=/tmp/build ARCH=$(uname -m) @@ -276,6 +279,9 @@ get_src efb767487ea3f6031577b9b224467ddbda2ad51a41c5867a47582d4ad85d609e \ get_src d74f86ada2329016068bc5a243268f1f555edd620b6a7d6ce89295e7d6cf18da \ "https://github.com/microsoft/mimalloc/archive/${MIMALOC_VERSION}.tar.gz" "mimalloc" +get_src 8191bff8491af9169a92e30e383ef8614717b0c6d40913d83b95051031e92321 \ + "http://hg.nginx.org/njs/archive/${NGINX_NJS_VERSION}.tar.gz" "njs" + # improve compilation times CORES=$(($(grep -c ^processor /proc/cpuinfo) - 1)) @@ -481,7 +487,8 @@ WITH_MODULES=" \ --add-dynamic-module=$BUILD_PATH/nginx-http-auth-digest \ --add-dynamic-module=$BUILD_PATH/ModSecurity-nginx \ --add-dynamic-module=$BUILD_PATH/ngx_http_geoip2_module \ - --add-dynamic-module=$BUILD_PATH/ngx_brotli" + --add-dynamic-module=$BUILD_PATH/ngx_brotli \ + --add-dynamic-module=$BUILD_PATH/njs/nginx" ./configure \ --prefix=/usr/local/nginx \