feat(nginx): build with custom openssl
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
tmpdir="$(mktemp -d -p .)"
|
tmpdir="$(readlink -f $(mktemp -d -p .))"
|
||||||
prefix="$(pwd)/nginx"
|
prefix="$(pwd)/nginx"
|
||||||
|
|
||||||
mkdir -p "$prefix"
|
mkdir -p "$prefix"
|
||||||
@@ -10,12 +10,16 @@ mkdir -p "$prefix"
|
|||||||
echo "Downloading nginx to $tmpdir"
|
echo "Downloading nginx to $tmpdir"
|
||||||
wget -qO- http://nginx.org/download/nginx-1.21.6.tar.gz | tar -xzv -C "$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"
|
pushd "$tmpdir/nginx-1.21.6"
|
||||||
|
|
||||||
echo "Configuring nginx"
|
echo "Configuring nginx"
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="$prefix" \
|
--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"
|
echo "Compiling nginx"
|
||||||
make -j "$(nproc)"
|
make -j "$(nproc)"
|
||||||
|
|||||||
Reference in New Issue
Block a user