2022-06-11 13:09:10 +00:00
|
|
|
cd ~/
|
|
|
|
rm -rf nginquic
|
|
|
|
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/packages.sh | bash
|
|
|
|
mkdir nginquic && cd nginquic
|
2022-11-29 15:08:09 +00:00
|
|
|
|
|
|
|
# Install Golang
|
|
|
|
unlink /usr/bin/go
|
|
|
|
wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz
|
|
|
|
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
|
|
|
|
export PATH=$PATH:/usr/local/go/bin
|
|
|
|
ln -s /usr/local/go/bin /usr/bin/go
|
|
|
|
|
2022-06-11 13:09:10 +00:00
|
|
|
hg clone -b quic https://hg.nginx.org/nginx-quic
|
2022-11-12 12:34:26 +00:00
|
|
|
git clone --depth=1 https://github.com/google/boringssl
|
2022-06-11 13:09:10 +00:00
|
|
|
cd boringssl
|
|
|
|
mkdir build && cd build && cmake .. && make
|
|
|
|
cd .. && cd ..
|
|
|
|
cd nginx-quic
|
|
|
|
mkdir mosc && cd mosc && curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.sh | bash && cd ..
|
|
|
|
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/configure.sh | bash && make
|
2023-03-03 16:44:06 +00:00
|
|
|
|
|
|
|
read -p "Would you like to Install Nginx Scriptly? (y/n)?" choice
|
|
|
|
case "$choice" in
|
|
|
|
y|Y ) Nginx_Install_ANS="install";;
|
|
|
|
n|N ) Nginx_Install_ANS="no";;
|
|
|
|
* ) Nginx_Install_ANS="abort";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [[ $Nginx_Install_ANS == "install" ]]; then
|
|
|
|
mkdir /lib/nginx/ && mkdir /lib/nginx/modules
|
|
|
|
cd objs && cp *.so /lib/nginx/modules
|
|
|
|
rm /usr/sbin/nginx
|
|
|
|
cp nginx /usr/sbin/nginx
|
|
|
|
curl -sSL https://raw.githubusercontent.com/minoplhy/nginquic/main/modules.conf > modules.conf
|
|
|
|
cp modules.conf /etc/nginx/modules-enabled
|
|
|
|
else
|
|
|
|
echo "Nginx Installation Abort. Your Nginx assets location is : ~/nginquic/nginx-quic/objs"
|
|
|
|
fi
|