feat(nginx): build with custom openssl

This commit is contained in:
2022-01-29 21:50:45 +08:00
parent 7722e36012
commit 3b8b166754
+6 -2
View File
@@ -2,7 +2,7 @@
set -e
tmpdir="$(mktemp -d -p .)"
tmpdir="$(readlink -f $(mktemp -d -p .))"
prefix="$(pwd)/nginx"
mkdir -p "$prefix"
@@ -10,12 +10,16 @@ mkdir -p "$prefix"
echo "Downloading nginx to $tmpdir"
wget -qO- http://nginx.org/download/nginx-1.21.6.tar.gz | tar -xzv -C "$tmpdir"
echo "Downloading openssl to $tmpdir"
wget -qO- https://www.openssl.org/source/openssl-1.1.1m.tar.gz | tar -xzv -C "$tmpdir"
pushd "$tmpdir/nginx-1.21.6"
echo "Configuring nginx"
./configure \
--prefix="$prefix" \
--with-http_ssl_module --with-threads --with-http_realip_module
--with-http_ssl_module --with-threads --with-http_realip_module \
--with-openssl="$tmpdir/openssl-1.1.1m"
echo "Compiling nginx"
make -j "$(nproc)"