@@ -21,49 +21,14 @@ ld_opt=${ld_opt:-"-L$zlib_prefix/lib -L$pcre_prefix/lib -L$OPENSSL_PREFIX/lib -W
2121
2222# dependencies for building openresty
2323OPENSSL_VERSION=${OPENSSL_VERSION:- " 3.2.0" }
24- OPENRESTY_VERSION=" 1.25.3.2 "
25- ngx_multi_upstream_module_ver=" 1.2.0 "
24+ OPENRESTY_VERSION=" 1.27.1.1 "
25+ ngx_multi_upstream_module_ver=" 12711 "
2626mod_dubbo_ver=" 1.0.2"
27- apisix_nginx_module_ver=" 1.16.2 "
27+ apisix_nginx_module_ver=" 12711 "
2828wasm_nginx_module_ver=" 0.7.0"
2929lua_var_nginx_module_ver=" v0.5.3"
3030lua_resty_events_ver=" 0.2.0"
3131
32-
33- install_openssl_3 (){
34- local fips=" "
35- if [ " $ENABLE_FIPS " == " true" ]; then
36- fips=" enable-fips"
37- fi
38- # required for openssl 3.x config
39- cpanm IPC/Cmd.pm
40- wget --no-check-certificate https://github.com/openssl/openssl/releases/download/openssl-3.2.0/openssl-${OPENSSL_VERSION} .tar.gz
41- tar xvf openssl-${OPENSSL_VERSION} .tar.gz
42- cd openssl-${OPENSSL_VERSION} /
43- export LDFLAGS=" -Wl,-rpath,$zlib_prefix /lib:$OPENSSL_PREFIX /lib"
44- ./config $fips \
45- shared \
46- zlib \
47- enable-camellia enable-seed enable-rfc3779 \
48- enable-cms enable-md2 enable-rc5 \
49- enable-weak-ssl-ciphers \
50- --prefix=$OPENSSL_PREFIX \
51- --libdir=lib \
52- --with-zlib-lib=$zlib_prefix /lib \
53- --with-zlib-include=$zlib_prefix /include
54- make -j $( nproc) LD_LIBRARY_PATH= CC=" gcc"
55- sudo make install
56- if [ -f " $OPENSSL_CONF_PATH " ]; then
57- sudo cp " $OPENSSL_CONF_PATH " " $OPENSSL_PREFIX " /ssl/openssl.cnf
58- fi
59- if [ " $ENABLE_FIPS " == " true" ]; then
60- $OPENSSL_PREFIX /bin/openssl fipsinstall -out $OPENSSL_PREFIX /ssl/fipsmodule.cnf -module $OPENSSL_PREFIX /lib/ossl-modules/fips.so
61- sudo sed -i
' s@# .include [email protected] ' " $OPENSSL_PREFIX " ' /ssl/fipsmodule.cnf@g; s/# \(fips = fips_sect\)/\1\nbase = base_sect\n\n[base_sect]\nactivate=1\n/g' $OPENSSL_PREFIX /ssl/openssl.cnf
62- fi
63- cd ..
64- }
65-
66-
6732if ([ $# -gt 0 ] && [ " $1 " == " latest" ]) || [ " $runtime_version " == " 0.0.0" ]; then
6833 debug_args=" --with-debug"
6934fi
@@ -74,8 +39,6 @@ workdir=$(mktemp -d)
7439cd " $workdir " || exit 1
7540
7641
77- install_openssl_3
78-
7942wget --no-check-certificate https://openresty.org/download/openresty-${OPENRESTY_VERSION} .tar.gz
8043tar -zxvpf openresty-${OPENRESTY_VERSION} .tar.gz > /dev/null
8144
@@ -91,7 +54,7 @@ if [ "$repo" == ngx_multi_upstream_module ]; then
9154 cp -r " $prev_workdir " ./ngx_multi_upstream_module-${ngx_multi_upstream_module_ver}
9255else
9356 git clone --depth=1 -b $ngx_multi_upstream_module_ver \
94- https://github.com/api7 /ngx_multi_upstream_module.git \
57+ https://github.com/shreemaan-abhishek /ngx_multi_upstream_module.git \
9558 ngx_multi_upstream_module-${ngx_multi_upstream_module_ver}
9659fi
9760
0 commit comments