From c461fa9b47b3bfcc4c8e054c1bd0714796e531aa Mon Sep 17 00:00:00 2001
From: VirtuBox Nginx current mainline release : v1.23.2
-Nginx current stable release : v1.22.1 Nginx current mainline release : v1.23.4
+Nginx current stable release : v1.24.0
Additional Third-party modules
-
Optional modules :
@@ -117,7 +116,6 @@ Nginx current stable release : v1.22.1bash <(wget -O - vtb.cx/nginx-ee || curl -sL vtb.cx/nginx-ee) --interactive
Example : Nginx stable release with pagespeed and naxsi
-bash <(wget -O - vtb.cx/nginx-ee || curl -sL vtb.cx/nginx-ee) --stable --pagespeed --naxsi
+Example : Nginx stable release with naxsi
+bash <(wget -O - vtb.cx/nginx-ee || curl -sL vtb.cx/nginx-ee) --stable --naxsi
Options available
Nginx build options :
--stable
: compile Nginx stable release
---full
: Naxsi + PageSpeed + RTMP
+--full
: Naxsi + RTMP
--dynamic
: Compile Nginx modules as dynamic modules
Optional third-party modules :
---pagespeed
: compile nginx with ngx_pagespeed latest-stable
--naxsi
: compile nginx with naxsi
--rtmp
: compile nginx with rtmp module
--libressl
: compile nginx with LibreSSL instead of OpenSSL
diff --git a/nginx-build.sh b/nginx-build.sh
index 8adf957..6734f8d 100755
--- a/nginx-build.sh
+++ b/nginx-build.sh
@@ -7,7 +7,7 @@
# Copyright (c) 2019-2020 VirtuBox
# This script is licensed under M.I.T
# -------------------------------------------------------------------------
-# Version 3.7.0 - 2022-12-03
+# Version 3.8.0 - 2023-05-08
# -------------------------------------------------------------------------
##################################
@@ -141,7 +141,7 @@ DIR_SRC="/usr/local/src"
NGINX_EE_VER=$(curl -m 5 --retry 3 -sL https://api.github.com/repos/VirtuBox/nginx-ee/releases/latest 2>&1 | jq -r '.tag_name')
NGINX_MAINLINE="$(curl -sL https://nginx.org/en/download.html 2>&1 | grep -E -o 'nginx\-[0-9.]+\.tar[.a-z]*' | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 1 2>&1)"
NGINX_STABLE="$(curl -sL https://nginx.org/en/download.html 2>&1 | grep -E -o 'nginx\-[0-9.]+\.tar[.a-z]*' | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 2 | grep 1.24 2>&1)"
-LIBRESSL_VER="3.5.3"
+LIBRESSL_VER="3.7.2"
if command_exists openssl; then
OPENSSL_BIN_VER=$(openssl version)
OPENSSL_VER=${OPENSSL_BIN_VER:0:15}
@@ -475,11 +475,7 @@ _gcc_setup() {
echo -ne ' Installing gcc [..]\r'
if {
echo "### installing gcc ###"
- if [ "$DISTRO_CODENAME" = "xenial" ]; then
- apt-get install gcc-8 g++-8 -y
- else
apt-get install gcc g++ -y
- fi
} >>/dev/null 2>&1; then
echo -ne " Installing gcc [${CGREEN}OK${CEND}]\\r"
echo -ne '\n'
@@ -497,15 +493,7 @@ _gcc_setup() {
_rtmp_setup() {
echo -ne ' Installing FFMPEG for RTMP module [..]\r'
if {
-
- if [ "$DISTRO_ID" = "Ubuntu" ] && [ "$DISTRO_CODENAME" != "focal" ] && [ "$DISTRO_CODENAME" != "jammy" ]; then
- if [ ! -f /etc/apt/sources.list.d/jonathonf-ubuntu-ffmpeg-4-"$(lsb_release -sc)".list ]; then
- add-apt-repository -y ppa:jonathonf/ffmpeg-4 -u
- apt-get install ffmpeg -y
- fi
- else
apt-get install ffmpeg -y
- fi
} >>/dev/null 2>&1; then
echo -ne " Installing FFMPEG for RMTP module [${CGREEN}OK${CEND}]\\r"
echo -ne '\n'
@@ -757,36 +745,6 @@ _download_naxsi() {
}
-##################################
-# Download Pagespeed
-##################################
-
-_download_pagespeed() {
-
- cd "$DIR_SRC" || exit 1
- if {
- echo -ne ' Downloading pagespeed [..]\r'
-
- {
- wget -O build_ngx_pagespeed.sh https://raw.githubusercontent.com/pagespeed/ngx_pagespeed/master/scripts/build_ngx_pagespeed.sh
- chmod +x build_ngx_pagespeed.sh
- if [ "$PAGESPEED_RELEASE" = "1" ]; then
- ./build_ngx_pagespeed.sh --ngx-pagespeed-version latest-beta -b "$DIR_SRC" -y
- else
- ./build_ngx_pagespeed.sh --ngx-pagespeed-version latest-stable -b "$DIR_SRC" -y
- fi
- } >>/tmp/nginx-ee.log 2>&1
-
- }; then
- echo -ne " Downloading pagespeed [${CGREEN}OK${CEND}]\\r"
- echo -ne '\n'
- else
- echo -e " Downloading pagespeed [${CRED}FAIL${CEND}]"
- echo -e '\n Please look at /tmp/nginx-ee.log\n'
- exit 1
- fi
-}
-
##################################
# Download Nginx
##################################
@@ -890,6 +848,7 @@ _configure_nginx() {
--add-dynamic-module=../redis2-nginx-module \
--add-dynamic-module=../memc-nginx-module \
--add-module=../ngx_devel_kit \
+ --add-module=../ngx_http_redis \
--add-module=../set-misc-nginx-module \
--add-dynamic-module=../ngx_http_auth_pam_module \
--add-module=../nginx-module-vts \
@@ -934,7 +893,6 @@ _configure_nginx() {
--with-pcre-jit \
$NGINX_INCLUDED_MODULES \
$NGINX_THIRD_MODULES \
- $NGX_PAGESPEED \
$NGX_RTMP \
--add-module=../echo-nginx-module \
--add-module=../headers-more-nginx-module \